Lines Matching refs:auth1
343 * INPUT: auth1, auth2
346 __s_api_is_auth_matched(const ns_cred_t *auth1,
349 if ((auth1->auth.type != auth2->auth.type) ||
350 (auth1->auth.tlstype != auth2->auth.tlstype) ||
351 (auth1->auth.saslmech != auth2->auth.saslmech) ||
352 (auth1->auth.saslopt != auth2->auth.saslopt))
355 if ((((auth1->auth.type == NS_LDAP_AUTH_SASL) &&
356 ((auth1->auth.saslmech == NS_LDAP_SASL_CRAM_MD5) ||
357 (auth1->auth.saslmech == NS_LDAP_SASL_DIGEST_MD5))) ||
358 (auth1->auth.type == NS_LDAP_AUTH_SIMPLE)) &&
359 ((auth1->cred.unix_cred.userID == NULL) ||
360 (auth1->cred.unix_cred.passwd == NULL) ||
361 ((strcasecmp(auth1->cred.unix_cred.userID,
363 ((strcmp(auth1->cred.unix_cred.passwd,