Searched refs:scred (Results 1 - 10 of 10) sorted by relevance

/netbsd-current/external/bsd/openpam/dist/lib/libpam/
H A Dopenpam_borrow_cred.c68 struct pam_saved_cred *scred; local
84 scred = calloc((size_t)1, sizeof *scred);
85 if (scred == NULL)
87 scred->euid = geteuid();
88 scred->egid = getegid();
89 r = getgroups(NGROUPS_MAX, scred->groups);
91 FREE(scred);
94 scred->ngroups = r;
95 r = pam_set_data(pamh, PAM_SAVED_CRED, scred,
[all...]
H A Dopenpam_restore_cred.c67 const struct pam_saved_cred *scred; local
77 scred = scredp;
78 if (scred->euid != geteuid()) {
79 if (seteuid(scred->euid) < 0 ||
80 setgroups(scred->ngroups, scred->groups) < 0 ||
81 setegid(scred->egid) < 0)
/netbsd-current/external/bsd/openldap/dist/libraries/libldap/
H A Dcyrus.c634 struct berval *scred = NULL; local
638 rc = ldap_parse_sasl_bind_result( ld, result, &scred, 0 );
640 if ( scred )
641 ber_bvfree( scred );
647 if( scred ) {
651 rc, scred ? (long) scred->bv_len : -1L );
652 ber_bvfree( scred );
653 scred = NULL;
660 if ( scred )
[all...]
H A Dsasl.c269 struct berval* scred; local
292 scred = NULL;
348 if( ber_scanf( ber, "O", &scred ) == LBER_ERROR ) {
359 *servercredp = scred;
361 } else if ( scred != NULL ) {
362 ber_bvfree( scred );
H A Dvc.c308 struct berval **scred,
322 rc = ldap_parse_verify_credentials(ld, res, rcode, diagmsg, scookie, scred, vcoctrls);
296 ldap_verify_credentials_s( LDAP *ld, struct berval *cookie, LDAP_CONST char *dn, LDAP_CONST char *mechanism, struct berval *cred, LDAPControl **vcictrls, LDAPControl **sctrls, LDAPControl **cctrls, int *rcode, char **diagmsg, struct berval **scookie, struct berval **scred, LDAPControl ***vcoctrls) argument
H A Dgssapi.c672 struct berval cred, *scred = NULL; local
741 rc = ldap_sasl_bind_s( ld, NULL, "GSS-SPNEGO", &cred, NULL, NULL, &scred );
747 if ( scred ) {
748 input_token.value = scred->bv_val;
749 input_token.length = scred->bv_len;
768 if ( scred ) {
769 ber_bvfree( scred );
/netbsd-current/external/bsd/openldap/dist/servers/lloadd/
H A Dupstream.c279 sasl_bind_step( LloadConnection *c, BerValue *scred, BerValue *ccred ) argument
375 (scred == NULL) ? NULL : scred->bv_val,
376 (scred == NULL) ? 0 : scred->bv_len,
445 BerValue scred = BER_BVNULL, ccred; local
450 ber_scanf( ber, "m", &scred ) == LBER_ERROR ) {
456 rc = sasl_bind_step( c, &scred, &ccred );
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dad.c130 struct berval ccred, *scred; local
192 serverControls, clientControls, &scred);
196 if(scred && scred->bv_len)
197 ber_bvfree(scred);
201 in.tb_data = malloc(scred->bv_len);
206 memcpy(in.tb_data, scred->bv_val, scred->bv_len);
207 in.tb_size = scred->bv_len;
208 ber_bvfree(scred);
[all...]
/netbsd-current/external/bsd/openldap/dist/clients/tools/
H A Dldapvc.c286 struct berval *scred = NULL; local
453 rc = ldap_parse_verify_credentials( ld, res, &rcode, &diag, &scookie, &scred, &vcctrls );
505 ber_bvfree( scred );
/netbsd-current/sys/kern/
H A Dkern_proc.c1830 proc_crmod_leave(kauth_cred_t scred, kauth_cred_t fcred, bool sugid) argument
1839 if (scred != NULL) {
1840 p->p_cred = scred;
1851 if ((oc = l->l_cred) != scred) {
1852 l->l_cred = kauth_cred_hold(scred);
1869 KASSERT(scred != NULL);
1871 if (oc != scred)

Completed in 123 milliseconds