Lines Matching defs:authority
91 static ns_cred_t authority;
385 entry, 0, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
389 entry, 1, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
4165 if (authority.cred.unix_cred.userID == NULL ||
4166 authority.cred.unix_cred.passwd == NULL)
4171 NULL, &authority, NS_LDAP_HARD, &cookie, &eres, &err, NULL);
4287 authority.cred.unix_cred.passwd = NULL;
4288 authority.cred.unix_cred.userID = NULL;
4289 authority.auth.type = NS_LDAP_AUTH_SIMPLE;
4322 authority.hostcertpath = optarg;
4332 authority.cred.unix_cred.userID = strdup(optarg);
4335 if (authority.cred.unix_cred.passwd) {
4348 authority.cred.unix_cred.passwd = strdup(optarg);
4351 if (authority.cred.unix_cred.passwd != NULL) {
4355 free(authority.cred.unix_cred.passwd);
4357 authority.cred.unix_cred.passwd = readPwd(optarg);
4358 if (authority.cred.unix_cred.passwd == NULL) {
4382 if (__ns_ldap_initAuth(authmech, &authority.auth, &errorp) !=
4392 if (authority.auth.saslmech != NS_LDAP_SASL_GSSAPI &&
4393 authority.cred.unix_cred.userID == NULL &&
4402 if (authority.auth.saslmech != NS_LDAP_SASL_GSSAPI &&
4403 authority.cred.unix_cred.passwd == NULL &&
4406 authority.cred.unix_cred.userID != NULL)) {
4410 authority.cred.unix_cred.passwd = strdup(ps);
4413 standalone_cfg.SA_AUTH = authmech == NULL ? NULL : &authority.auth;
4414 standalone_cfg.SA_CERT_PATH = authority.hostcertpath;
4415 standalone_cfg.SA_BIND_DN = authority.cred.unix_cred.userID;
4416 standalone_cfg.SA_BIND_PWD = authority.cred.unix_cred.passwd;
4445 authority.auth.type = authp->type;
4446 authority.auth.tlstype = authp->tlstype;
4447 authority.auth.saslmech = authp->saslmech;
4448 authority.auth.saslopt = authp->saslopt;
4459 if (authority.auth.saslmech == NS_LDAP_SASL_GSSAPI &&
4460 authority.cred.unix_cred.passwd != NULL &&
4461 authority.cred.unix_cred.userID != NULL) {
4473 authority.cred.unix_cred.passwd = NULL;
4474 authority.cred.unix_cred.userID = NULL;
4569 &authority, flag, &errorp) != NS_LDAP_SUCCESS) {