Lines Matching refs:auth

479 	(void) fprintf(fp, "tid= %d: AuthType=%d\n", t, cred->auth.type);
480 (void) fprintf(fp, "tid= %d: TlsType=%d\n", t, cred->auth.tlstype);
481 (void) fprintf(fp, "tid= %d: SaslMech=%d\n", t, cred->auth.saslmech);
482 (void) fprintf(fp, "tid= %d: SaslOpt=%d\n", t, cred->auth.saslopt);
512 printCred(fp, con->auth);
586 const ns_cred_t *auth, Connection **conp)
594 if (auth == NULL || conp == NULL)
616 printCred(stderr, auth);
635 if (__s_api_is_auth_matched(cp->auth, auth) == B_FALSE)
664 if (con->auth)
665 (void) __ns_ldap_freeCred(&(con->auth));
685 const ns_cred_t *auth, ConnectionID *cID, int timeoutSec,
703 if (conp == NULL || errorp == NULL || auth == NULL)
710 if ((id = findConnection(flags, serverAddr, auth, &con)) != -1) {
722 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) {
775 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) {
783 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp,
790 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) {
855 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp,
973 con->auth = __ns_ldap_dupAuth(auth);
974 if (con->auth == NULL) {
1344 openConnection(LDAP **ldp, const char *serverAddr, const ns_cred_t *auth,
1384 ret_code = createSession(auth,
1441 ret_code = performBind(auth,
1474 * necessary fields of a cred for a given auth method
1514 * credential level "self" can work with auth method sasl/GSSAPI only
1524 (*authp)->auth = *aMethod;
1806 anon.auth.type = NS_LDAP_AUTH_NONE;
1810 /* using specified auth method */
1970 * auth Credentials for bind. This could be NULL in which case
1975 * in auth needs to change immediately
2036 createTLSSession(const ns_cred_t *auth, const char *serverAddr,
2060 hostcertpath = auth->hostcertpath;
2271 * auth - a structure specified an authenticastion method and credentials,
2285 createSession(const ns_cred_t *auth, const char *serverAddr,
2292 switch (auth->auth.type) {
2303 "authentication method (%d)"), auth->auth.type);
2314 if (auth->auth.type == NS_LDAP_AUTH_SASL &&
2315 auth->auth.saslmech == NS_LDAP_SASL_GSSAPI)
2319 return (createTLSSession(auth, serverAddr, port,
2333 doSimpleBind(const ns_cred_t *auth,
2347 binddn = auth->cred.unix_cred.userID;
2348 passwd = auth->cred.unix_cred.passwd;
2431 doSASLBind(const ns_cred_t *auth,
2449 if (auth->auth.saslopt != NS_LDAP_SASLOPT_NONE &&
2450 auth->auth.saslmech != NS_LDAP_SASL_GSSAPI) {
2454 auth->auth.saslopt);
2461 if (auth->auth.saslmech != NS_LDAP_SASL_GSSAPI) {
2462 binddn = auth->cred.unix_cred.userID;
2463 passwd = auth->cred.unix_cred.passwd;
2481 switch (auth->auth.saslmech) {
2604 "mechanism (%d)"), auth->auth.saslmech);
2616 * from a type of the connection specified by auth->auth.type.
2619 * auth - a structure specified an authenticastion method and credentials,
2633 performBind(const ns_cred_t *auth,
2643 ns_ldap_return_code (*binder)(const ns_cred_t *auth,
2660 bindType = auth->auth.type == NS_LDAP_AUTH_TLS ?
2661 auth->auth.tlstype : auth->auth.type;
2689 return (*binder)(auth,