Lines Matching defs:authority
90 static ns_cred_t authority;
384 entry, 0, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
388 entry, 1, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
4168 if (authority.cred.unix_cred.userID == NULL ||
4169 authority.cred.unix_cred.passwd == NULL)
4174 NULL, &authority, NS_LDAP_HARD, &cookie, &eres, &err, NULL);
4290 authority.cred.unix_cred.passwd = NULL;
4291 authority.cred.unix_cred.userID = NULL;
4292 authority.auth.type = NS_LDAP_AUTH_SIMPLE;
4325 authority.hostcertpath = optarg;
4335 authority.cred.unix_cred.userID = strdup(optarg);
4338 if (authority.cred.unix_cred.passwd) {
4351 authority.cred.unix_cred.passwd = strdup(optarg);
4354 if (authority.cred.unix_cred.passwd != NULL) {
4358 free(authority.cred.unix_cred.passwd);
4360 authority.cred.unix_cred.passwd = readPwd(optarg);
4361 if (authority.cred.unix_cred.passwd == NULL) {
4385 if (__ns_ldap_initAuth(authmech, &authority.auth, &errorp) !=
4395 if (authority.auth.saslmech != NS_LDAP_SASL_GSSAPI &&
4396 authority.cred.unix_cred.userID == NULL &&
4405 if (authority.auth.saslmech != NS_LDAP_SASL_GSSAPI &&
4406 authority.cred.unix_cred.passwd == NULL &&
4409 authority.cred.unix_cred.userID != NULL)) {
4413 authority.cred.unix_cred.passwd = strdup(ps);
4416 standalone_cfg.SA_AUTH = authmech == NULL ? NULL : &authority.auth;
4417 standalone_cfg.SA_CERT_PATH = authority.hostcertpath;
4418 standalone_cfg.SA_BIND_DN = authority.cred.unix_cred.userID;
4419 standalone_cfg.SA_BIND_PWD = authority.cred.unix_cred.passwd;
4448 authority.auth.type = authp->type;
4449 authority.auth.tlstype = authp->tlstype;
4450 authority.auth.saslmech = authp->saslmech;
4451 authority.auth.saslopt = authp->saslopt;
4462 if (authority.auth.saslmech == NS_LDAP_SASL_GSSAPI &&
4463 authority.cred.unix_cred.passwd != NULL &&
4464 authority.cred.unix_cred.userID != NULL) {
4476 authority.cred.unix_cred.passwd = NULL;
4477 authority.cred.unix_cred.userID = NULL;
4572 &authority, flag, &errorp) != NS_LDAP_SUCCESS) {