Lines Matching defs:auth1
423 * INPUT: auth1, auth2
426 __s_api_is_auth_matched(const ns_cred_t *auth1,
429 if ((auth1->auth.type != auth2->auth.type) ||
430 (auth1->auth.tlstype != auth2->auth.tlstype) ||
431 (auth1->auth.saslmech != auth2->auth.saslmech) ||
432 (auth1->auth.saslopt != auth2->auth.saslopt))
435 if ((((auth1->auth.type == NS_LDAP_AUTH_SASL) &&
436 ((auth1->auth.saslmech == NS_LDAP_SASL_CRAM_MD5) ||
437 (auth1->auth.saslmech == NS_LDAP_SASL_DIGEST_MD5))) ||
438 (auth1->auth.type == NS_LDAP_AUTH_SIMPLE)) &&
439 ((auth1->cred.unix_cred.userID == NULL) ||
440 (auth1->cred.unix_cred.passwd == NULL) ||
441 ((strcasecmp(auth1->cred.unix_cred.userID,
443 ((strcmp(auth1->cred.unix_cred.passwd,