Lines Matching defs:nsc
61 ns_cred_t nsc;
140 strings2cred(ns_cred_t *nsc, char *user, char *passwd, char *auth)
143 (void) memset(nsc, 0, sizeof (ns_cred_t));
145 if ((rc = string2auth(auth, &nsc->auth)) != IDMAP_SUCCESS)
149 nsc->cred.unix_cred.userID = strdup(user);
150 if (nsc->cred.unix_cred.userID == NULL)
155 nsc->cred.unix_cred.passwd = strdup(passwd);
156 if (nsc->cred.unix_cred.passwd == NULL) {
157 free(nsc->cred.unix_cred.userID);
335 if (p->nsc.cred.unix_cred.userID != NULL) {
336 free(p->nsc.cred.unix_cred.userID);
339 if (p->nsc.cred.unix_cred.passwd != NULL) {
341 (void) memset(p->nsc.cred.unix_cred.passwd, 0,
342 strlen(p->nsc.cred.unix_cred.passwd));
343 free(p->nsc.cred.unix_cred.passwd);
439 rc = strings2cred(&p->nsc, user, passwd, auth);
794 idmap_nldap_set(idmap_nm_handle_t *p, ns_cred_t *nsc, char *dn, char *attr,
832 nsc, 0, &errorp);
837 nsc, 0, &errorp);
842 nsc, 0, &errorp);
921 rc = idmap_nldap_set(p, &p->nsc, dn, p->nldap_winname_attr,
987 rc = idmap_nldap_set(p, &p->nsc, dn, p->nldap_winname_attr,