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