Lines Matching refs:auth

479 	(void) fprintf(fp, "tid= %d: AuthType=%d\n", t, cred->auth.type);  in printCred()
480 (void) fprintf(fp, "tid= %d: TlsType=%d\n", t, cred->auth.tlstype); in printCred()
481 (void) fprintf(fp, "tid= %d: SaslMech=%d\n", t, cred->auth.saslmech); in printCred()
482 (void) fprintf(fp, "tid= %d: SaslOpt=%d\n", t, cred->auth.saslopt); in printCred()
512 printCred(fp, con->auth); in printConnection()
586 const ns_cred_t *auth, Connection **conp) in findConnection() argument
594 if (auth == NULL || conp == NULL) in findConnection()
616 printCred(stderr, auth); in findConnection()
635 if (__s_api_is_auth_matched(cp->auth, auth) == B_FALSE) in findConnection()
664 if (con->auth) in __s_api_freeConnection()
665 (void) __ns_ldap_freeCred(&(con->auth)); in __s_api_freeConnection()
685 const ns_cred_t *auth, ConnectionID *cID, int timeoutSec, in makeConnection() argument
703 if (conp == NULL || errorp == NULL || auth == NULL) in makeConnection()
710 if ((id = findConnection(flags, serverAddr, auth, &con)) != -1) { in makeConnection()
722 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) { in makeConnection()
775 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) { in makeConnection()
783 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp, in makeConnection()
790 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) { in makeConnection()
855 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp, in makeConnection()
973 con->auth = __ns_ldap_dupAuth(auth); in makeConnection()
974 if (con->auth == NULL) { in makeConnection()
1344 openConnection(LDAP **ldp, const char *serverAddr, const ns_cred_t *auth, in openConnection() argument
1384 ret_code = createSession(auth, in openConnection()
1441 ret_code = performBind(auth, in openConnection()
1524 (*authp)->auth = *aMethod; in __s_api_getDefaultAuth()
1806 anon.auth.type = NS_LDAP_AUTH_NONE; in getConnection()
2036 createTLSSession(const ns_cred_t *auth, const char *serverAddr, in createTLSSession() argument
2060 hostcertpath = auth->hostcertpath; in createTLSSession()
2285 createSession(const ns_cred_t *auth, const char *serverAddr, in createSession() argument
2292 switch (auth->auth.type) { in createSession()
2303 "authentication method (%d)"), auth->auth.type); in createSession()
2314 if (auth->auth.type == NS_LDAP_AUTH_SASL && in createSession()
2315 auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) in createSession()
2319 return (createTLSSession(auth, serverAddr, port, in createSession()
2333 doSimpleBind(const ns_cred_t *auth, in doSimpleBind() argument
2347 binddn = auth->cred.unix_cred.userID; in doSimpleBind()
2348 passwd = auth->cred.unix_cred.passwd; in doSimpleBind()
2431 doSASLBind(const ns_cred_t *auth, in doSASLBind() argument
2449 if (auth->auth.saslopt != NS_LDAP_SASLOPT_NONE && in doSASLBind()
2450 auth->auth.saslmech != NS_LDAP_SASL_GSSAPI) { in doSASLBind()
2454 auth->auth.saslopt); in doSASLBind()
2461 if (auth->auth.saslmech != NS_LDAP_SASL_GSSAPI) { in doSASLBind()
2462 binddn = auth->cred.unix_cred.userID; in doSASLBind()
2463 passwd = auth->cred.unix_cred.passwd; in doSASLBind()
2481 switch (auth->auth.saslmech) { in doSASLBind()
2604 "mechanism (%d)"), auth->auth.saslmech); in doSASLBind()
2633 performBind(const ns_cred_t *auth, in performBind() argument
2643 ns_ldap_return_code (*binder)(const ns_cred_t *auth, in performBind()
2660 bindType = auth->auth.type == NS_LDAP_AUTH_TLS ? in performBind()
2661 auth->auth.tlstype : auth->auth.type; in performBind()
2689 return (*binder)(auth, in performBind()