/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | getauthattr.c | 50 authstr_t auth; in getauthattr() local 53 (void) memset(&auth, 0, sizeof (authstr_t)); in getauthattr() 54 tmp = _getauthattr(&auth, buf, NSS_BUFLEN_AUTHATTR, &err); in getauthattr() 64 authstr_t auth; in getauthnam() local 70 (void) memset(&auth, 0, sizeof (authstr_t)); in getauthnam() 71 tmp = _getauthnam(name, &auth, buf, NSS_BUFLEN_AUTHATTR, &err); in getauthnam() 91 free_authattr(authattr_t *auth) in free_authattr() argument 93 if (auth) { in free_authattr() 94 free(auth->name); in free_authattr() 95 free(auth->res1); in free_authattr() [all …]
|
H A D | chkauthattr.c | 233 char *auth, *last, *auths; in _enum_auths_a() local 241 while (auth = strtok_r(auths, KV_SEPSTR, &last)) { in _enum_auths_a() 244 res = cb(auth, ctxt, pres); in _enum_auths_a() 293 _auth_match_noun(const char *pattern, const char *auth, in _auth_match_noun() argument 317 (strncmp(pattern, auth, pattern_len) == 0)) { in _auth_match_noun() 333 if (strncmp(pattern, auth, pattern_len - 1) == 0) { in _auth_match_noun() 334 grant = strrchr(auth, '.'); in _auth_match_noun() 344 _auth_match(const char *pattern, const char *auth) in _auth_match() argument 346 return (_auth_match_noun(pattern, auth, strlen(auth), NULL)); in _auth_match() 350 _is_authorized(const char *auth, void *authname, void *res) in _is_authorized() argument [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | auth.test | 16 # $Id: auth.test,v 1.12 2003/12/07 00:24:35 drh Exp $ 25 do_test auth-1.1.1 { 28 proc auth {code arg1 arg2 arg3 arg4} { 34 db authorizer ::auth 37 do_test auth-1.1.2 { 40 do_test auth-1.2 { 43 do_test auth-1.3.1 { 44 proc auth {code arg1 arg2 arg3 arg4} { 53 do_test auth-1.3.2 { 56 do_test auth-1.3.3 { [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | auth.h | 253 #define AUTH_NEXTVERF(auth) \ argument 254 ((*((auth)->ah_ops->ah_nextverf))(auth)) 255 #define auth_nextverf(auth) \ argument 256 ((*((auth)->ah_ops->ah_nextverf))(auth)) 260 #define AUTH_MARSHALL(auth, xdrs, cred) \ argument 261 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs, cred)) 262 #define auth_marshall(auth, xdrs, cred) \ argument 263 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs, cred)) 265 #define AUTH_MARSHALL(auth, xdrs) \ argument 266 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) [all …]
|
H A D | svc_auth.h | 82 #define SVCAUTH_GSSPARMS(auth) ((svc_rpc_gss_parms_t *)&(auth)->svc_gss_parms) argument 91 #define SVCAUTH_WRAP(auth, xdrs, xfunc, xwhere) \ argument 92 ((*((auth)->svc_ah_ops.svc_ah_wrap))(auth, xdrs, xfunc, xwhere)) 93 #define SVCAUTH_UNWRAP(auth, xdrs, xfunc, xwhere) \ argument 94 ((*((auth)->svc_ah_ops.svc_ah_unwrap))(auth, xdrs, xfunc, xwhere))
|
/illumos-gate/usr/src/lib/libpam/ |
H A D | pam.conf | 38 login auth requisite pam_authtok_get.so.1 39 login auth required pam_dhkeys.so.1 40 login auth required pam_unix_cred.so.1 41 login auth required pam_unix_auth.so.1 42 login auth required pam_dial_auth.so.1 46 rlogin auth sufficient pam_rhosts_auth.so.1 47 rlogin auth requisite pam_authtok_get.so.1 48 rlogin auth required pam_dhkeys.so.1 49 rlogin auth required pam_unix_cred.so.1 50 rlogin auth required pam_unix_auth.so.1 [all …]
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | auth_unix.c | 69 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 85 AUTH *auth; in authunix_create() local 91 auth = (AUTH *) bkmem_alloc(sizeof (*auth)); in authunix_create() 92 if (auth == NULL) { in authunix_create() 102 auth->ah_ops = authunix_ops(); in authunix_create() 103 auth->ah_private = (caddr_t)au; in authunix_create() 106 auth->ah_verf = au->au_shcred = _null_auth; in authunix_create() 137 auth->ah_cred = au->au_origcred; in authunix_create() 138 marshal_new_auth(auth); in authunix_create() 139 return (auth); in authunix_create() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_sys.c | 72 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 92 AUTH *auth; in authsys_create() local 98 auth = malloc(sizeof (*auth)); in authsys_create() 99 if (auth == NULL) { in authsys_create() 108 free(auth); in authsys_create() 111 auth->ah_ops = authsys_ops(); in authsys_create() 112 auth->ah_private = (caddr_t)au; in authsys_create() 113 auth->ah_verf = au->au_shcred = _null_auth; in authsys_create() 143 free(auth); in authsys_create() 152 auth->ah_cred = au->au_origcred; in authsys_create() [all …]
|
H A D | auth_des.c | 130 AUTH *auth; in authdes_pk_seccreate() local 137 auth = malloc(sizeof (AUTH)); in authdes_pk_seccreate() 138 if (auth == NULL) { in authdes_pk_seccreate() 184 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate() 190 auth->ah_key = *ckey; in authdes_pk_seccreate() 195 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate() 196 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate() 197 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate() 198 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate() 200 if (!authdes_refresh(auth, NULL)) { in authdes_pk_seccreate() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netr_ssp.c | 146 netr_info_t *auth = arg; in netr_ssp_init() local 153 domain_len = smb_sbequiv_strlen(auth->nb_domain); in netr_ssp_init() 154 comp_len = smb_sbequiv_strlen(auth->hostname); in netr_ssp_init() 162 strlen(auth->hostname) * 2 + strlen(auth->fqdn_domain) * 2; in netr_ssp_init() 174 slen = smb_mbstooem(nam->nam_str, auth->nb_domain, domain_len); in netr_ssp_init() 184 auth->hostname, comp_len); in netr_ssp_init() 195 slen = dn_comp(auth->fqdn_domain, nam->nam_str + hdr->auth_length, in netr_ssp_init() 204 slen = dn_comp(auth->hostname, nam->nam_str + hdr->auth_length, in netr_ssp_init() 230 netr_info_t *auth = arg; in netr_ssp_recv() local 247 auth->clh_seqnum = 0; in netr_ssp_recv() [all …]
|
/illumos-gate/usr/src/lib/rpcsec_gss/ |
H A D | rpcsec_gss.c | 95 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument 118 AUTH *auth = NULL; local 160 if ((auth = (AUTH *) malloc(sizeof (*auth))) != NULL) 162 if (auth == NULL || ap == NULL) { 165 if (auth != NULL) 166 free((char *)auth); 195 if (!rpc_gss_seccreate_pvt(&gssstat, &minor_stat, auth, ap, 204 free((char *)auth); 215 rpc_gss_destroy(auth); 238 return (auth); [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetauthattr.c | 34 putauthattr(const authattr_t *auth, FILE *fp) in putauthattr() argument 40 if (auth == NULL) in putauthattr() 44 auth->name != NULL ? auth->name : "", in putauthattr() 45 auth->res1 != NULL ? auth->res1 : "", in putauthattr() 46 auth->res2 != NULL ? auth->res2 : "", in putauthattr() 47 auth->short_desc != NULL ? auth->short_desc : "", in putauthattr() 48 auth->long_desc != NULL ? auth->long_desc : "") == EOF) in putauthattr() 50 attrs = auth->attr; in putauthattr()
|
/illumos-gate/usr/src/uts/common/rpc/sec_gss/ |
H A D | rpcsec_gss.c | 101 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument 124 AUTH *auth; member 221 "%p\n", (void *)p->auth); in gssauth_zone_fini() 222 rpc_gss_destroy(p->auth); in gssauth_zone_fini() 271 AUTH *auth = NULL; in rpc_gss_secget() local 310 ap = AUTH_PRIVATE(current->auth); in rpc_gss_secget() 324 rpc_gss_destroy(current->auth); in rpc_gss_secget() 326 auth = NULL; in rpc_gss_secget() 328 auth = current->auth; in rpc_gss_secget() 341 if (!auth) { in rpc_gss_secget() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | auth_kern.c | 99 AUTH *auth = (AUTH *)buf; in authkern_init() local 101 auth->ah_ops = &auth_kern_ops; in authkern_init() 102 auth->ah_cred.oa_flavor = AUTH_UNIX; in authkern_init() 103 auth->ah_verf = _null_auth; in authkern_init() 113 authkern_nextverf(AUTH *auth) in authkern_nextverf() argument 119 authkern_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authkern_marshal() argument 130 ASSERT(auth->ah_cred.oa_flavor == AUTH_SYS); in authkern_marshal() 131 ASSERT(auth->ah_verf.oa_flavor == AUTH_NONE); in authkern_marshal() 132 ASSERT(auth->ah_verf.oa_length == 0); in authkern_marshal() 217 auth->ah_cred.oa_base = sercred; in authkern_marshal() [all …]
|
H A D | auth_loopb.c | 100 AUTH *auth = (AUTH *)buf; in authloopback_init() local 102 auth->ah_ops = &authloopback_ops; in authloopback_init() 103 auth->ah_cred.oa_flavor = AUTH_LOOPBACK; in authloopback_init() 104 auth->ah_verf = _null_auth; in authloopback_init() 114 authloopback_nextverf(AUTH *auth) in authloopback_nextverf() argument 121 authloopback_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authloopback_marshal() argument 133 ASSERT(auth->ah_cred.oa_flavor == AUTH_LOOPBACK); in authloopback_marshal() 134 ASSERT(auth->ah_verf.oa_flavor == AUTH_NONE); in authloopback_marshal() 135 ASSERT(auth->ah_verf.oa_length == 0); in authloopback_marshal() 222 auth->ah_cred.oa_base = sercred; in authloopback_marshal() [all …]
|
H A D | auth_none.c | 73 AUTH *auth = (AUTH *)buf; in authnone_init() local 75 auth->ah_ops = &auth_none_ops; in authnone_init() 85 auth->ah_cred = auth->ah_verf = _null_auth; in authnone_init() 95 authnone_nextverf(AUTH *auth) in authnone_nextverf() argument 102 authnone_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authnone_marshal() argument 123 if ((xdr_opaque_auth(xdrs, &(auth->ah_cred))) && in authnone_marshal() 124 (xdr_opaque_auth(xdrs, &(auth->ah_verf)))) in authnone_marshal() 132 authnone_validate(AUTH *auth, struct opaque_auth *verf) in authnone_validate() argument 139 authnone_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr) in authnone_refresh() argument 145 authnone_destroy(AUTH *auth) in authnone_destroy() argument [all …]
|
H A D | auth_des.c | 60 #define AUTH_PRIVATE(auth) (struct ad_private *)auth->ah_private argument 109 AUTH *auth; in authdes_create() local 123 auth = ALLOC(AUTH); in authdes_create() 139 if (auth == NULL || ad == NULL || ad->ad_fullname == NULL || in authdes_create() 163 if ((stat = key_gendes(&auth->ah_key)) != RPC_SUCCESS) { in authdes_create() 176 auth->ah_key = *ckey; in authdes_create() 181 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_create() 182 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_create() 183 auth->ah_ops = authdes_ops(); in authdes_create() 184 auth->ah_private = (caddr_t)ad; in authdes_create() [all …]
|
H A D | sec_clnt.c | 444 AUTH *auth; in sec_clnt_geth() local 517 &auth); in sec_clnt_geth() 521 *ap = auth; in sec_clnt_geth() 553 da->da_auth = auth; in sec_clnt_geth() 574 (caddr_t)secdata, cr, &auth); in sec_clnt_geth() 575 *ap = auth; in sec_clnt_geth() 614 sec_clnt_freeh(AUTH *auth) in sec_clnt_freeh() argument 618 switch (auth->ah_cred.oa_flavor) { in sec_clnt_freeh() 622 auth_destroy(auth); /* was overflow */ in sec_clnt_freeh() 630 if (da->da_auth == auth) { in sec_clnt_freeh() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SAttrMsg.java | 141 SrvLocMsg makeReply(Vector attrs, Hashtable auth) in makeReply() argument 150 if (auth != null) { in makeReply() 151 AuthBlock selectedAuth = AuthBlock.getEquivalentAuth(spi, auth); in makeReply() 152 auth = null; in makeReply() 154 auth = new Hashtable(); in makeReply() 155 auth.put(spi, selectedAuth); in makeReply() 161 hdr.parseAttributeVectorOut(attrs, 0, (auth != null), in makeReply() 162 auth, baos, true); in makeReply() 173 AuthBlock.desc(auth) + in makeReply()
|
H A D | SSrvMsg.java | 176 Hashtable auth = null; in makeReply() local 179 auth = (Hashtable)URLSignatures.get(surl); in makeReply() 181 AuthBlock.getEquivalentAuth(spi, auth); in makeReply() 182 auth = null; in makeReply() 184 auth = new Hashtable(); in makeReply() 185 auth.put(spi, selectedAuth); in makeReply() 189 (auth != null ? in makeReply() 198 (auth != null), in makeReply() 199 auth, in makeReply()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_connect.c | 479 (void) fprintf(fp, "tid= %d: AuthType=%d\n", t, cred->auth.type); in printCred() 480 (void) fprintf(fp, "tid= %d: TlsType=%d\n", t, cred->auth.tlstype); in printCred() 481 (void) fprintf(fp, "tid= %d: SaslMech=%d\n", t, cred->auth.saslmech); in printCred() 482 (void) fprintf(fp, "tid= %d: SaslOpt=%d\n", t, cred->auth.saslopt); in printCred() 512 printCred(fp, con->auth); in printConnection() 586 const ns_cred_t *auth, Connection **conp) in findConnection() argument 594 if (auth == NULL || conp == NULL) in findConnection() 616 printCred(stderr, auth); in findConnection() 635 if (__s_api_is_auth_matched(cp->auth, auth) == B_FALSE) in findConnection() 664 if (con->auth) in __s_api_freeConnection() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 70 pci_scsi_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_scsi_device_create() argument 79 instance, NULL, auth, NULL, NULL, NULL); in pci_scsi_device_create() 130 pci_smp_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_smp_device_create() argument 138 instance, NULL, auth, NULL, NULL, NULL); in pci_smp_device_create() 164 pci_iport_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_iport_device_create() argument 172 instance, NULL, auth, NULL, NULL, NULL); in pci_iport_device_create() 197 nvlist_t *auth; in pci_iports_instantiate() local 201 auth = topo_mod_auth(mod, parent); in pci_iports_instantiate() 209 iport = pci_iport_device_create(mod, auth, parent, cn, i++); in pci_iports_instantiate() 231 pci_scsi_device_create(mod, auth, iport, sd, in pci_iports_instantiate() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_authclient.c | 176 conn_auth_t *auth = &lsm->icl_auth; in iscsit_verify_chap_resp() local 179 if (auth->ca_use_radius == B_TRUE) { in iscsit_verify_chap_resp() 182 struct sockaddr_storage *sa = &auth->ca_radius_server; in iscsit_verify_chap_resp() 205 bcopy(auth->ca_radius_secret, in iscsit_verify_chap_resp() 209 auth->ca_radius_secretlen; in iscsit_verify_chap_resp() 212 auth->ca_ini_chapuser, in iscsit_verify_chap_resp() 213 auth->ca_tgt_chapuser, in iscsit_verify_chap_resp() 231 if (auth->ca_ini_chapsecretlen == 0) { in iscsit_verify_chap_resp() 243 auth->ca_ini_chapsecret, auth->ca_ini_chapsecretlen, in iscsit_verify_chap_resp()
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_intel.c | 121 mc_add_ranks(topo_mod_t *mod, tnode_t *dnode, nvlist_t *auth, int dimm, in mc_add_ranks() argument 145 RANK, rank, NULL, auth, part, rev, serial); in mc_add_ranks() 187 nvlist_t *auth, nvlist_t **nvl, uint_t ndimms, int maxdimms, int maxranks) in mc_add_dimms() argument 253 DIMM, dimm_number, NULL, auth, part, rev, serial); in mc_add_dimms() 305 mc_add_ranks(mod, dnode, auth, dimm_number, ranks_nvp, in mc_add_dimms() 313 int channel, nvlist_t *auth, nvlist_t *nvl, int maxdimms, int maxranks) in mc_add_channel() argument 323 if (mkrsrc(mod, pnode, DRAMCHANNEL, channel, auth, &fmri) != 0) { in mc_add_channel() 343 mc_add_dimms(mod, chip_smbid, mc_channel, auth, dimm_nvl, in mc_add_channel() 360 const char *name, nvlist_t *auth, nvlist_t *nvl) in mc_nb_create() argument 408 if (mkrsrc(mod, pnode, name, i, auth, &fmri) != 0) { in mc_nb_create() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getauthattr.c | 66 authstr_t *auth = (authstr_t *)ent; in str2authattr() local 85 auth->name = _strtok_escape(buffer, sep, &last); in str2authattr() 86 auth->res1 = _strtok_escape(NULL, sep, &last); in str2authattr() 87 auth->res2 = _strtok_escape(NULL, sep, &last); in str2authattr() 88 auth->short_desc = _strtok_escape(NULL, sep, &last); in str2authattr() 89 auth->long_desc = _strtok_escape(NULL, sep, &last); in str2authattr() 90 auth->attr = _strtok_escape(NULL, sep, &last); in str2authattr()
|