Home
last modified time | relevance | path

Searched refs:mods (Results 1 – 25 of 34) sorted by relevance

12

/titanic_41/usr/src/lib/libldap5/sources/ldap/common/
H A Dcache.c65 LDAPMod **mods; in nsldapi_add_result_to_cache() local
85 mods = (LDAPMod **)NSLDAPI_MALLOC( GRABSIZE * sizeof(LDAPMod *) ); in nsldapi_add_result_to_cache()
86 if (mods == NULL) { in nsldapi_add_result_to_cache()
96 mods = (LDAPMod **)NSLDAPI_REALLOC( mods, in nsldapi_add_result_to_cache()
98 if (mods == NULL) { in nsldapi_add_result_to_cache()
106 mods[i] = (LDAPMod *)NSLDAPI_CALLOC( 1, sizeof(LDAPMod) ); in nsldapi_add_result_to_cache()
107 if (mods[i] == NULL) { in nsldapi_add_result_to_cache()
111 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
114 mods[i]->mod_op = LDAP_MOD_BVALUES; in nsldapi_add_result_to_cache()
115 mods[i]->mod_type = a; in nsldapi_add_result_to_cache()
[all …]
H A Dmodify.c59 ldap_modify( LDAP *ld, const char *dn, LDAPMod **mods ) in ldap_modify() argument
65 if ( ldap_modify_ext( ld, dn, mods, NULL, NULL, &msgid ) in ldap_modify()
75 ldap_modify_ext( LDAP *ld, const char *dn, LDAPMod **mods, in ldap_modify_ext() argument
110 if ( !NSLDAPI_VALID_NONEMPTY_LDAPMOD_ARRAY( mods )) { in ldap_modify_ext()
127 dn, mods )) != 0 ) { in ldap_modify_ext()
150 for ( i = 0; mods[i] != NULL; i++ ) { in ldap_modify_ext()
151 if (( mods[i]->mod_op & LDAP_MOD_BVALUES) != 0 ) { in ldap_modify_ext()
153 mods[i]->mod_op & ~LDAP_MOD_BVALUES, in ldap_modify_ext()
154 mods[i]->mod_type, mods[i]->mod_bvalues ); in ldap_modify_ext()
156 rc = ber_printf( ber, "{e{s[v]}}", mods[i]->mod_op, in ldap_modify_ext()
[all …]
H A Dfree.c90 ldap_mods_free( LDAPMod **mods, int freemods ) in ldap_mods_free() argument
94 if ( !NSLDAPI_VALID_LDAPMOD_ARRAY( mods )) { in ldap_mods_free()
98 for ( i = 0; mods[i] != NULL; i++ ) { in ldap_mods_free()
99 if ( mods[i]->mod_op & LDAP_MOD_BVALUES ) { in ldap_mods_free()
100 if ( mods[i]->mod_bvalues != NULL ) { in ldap_mods_free()
101 ber_bvecfree( mods[i]->mod_bvalues ); in ldap_mods_free()
103 } else if ( mods[i]->mod_values != NULL ) { in ldap_mods_free()
104 ldap_value_free( mods[i]->mod_values ); in ldap_mods_free()
106 if ( mods[i]->mod_type != NULL ) { in ldap_mods_free()
107 NSLDAPI_FREE( mods[i]->mod_type ); in ldap_mods_free()
[all …]
H A Dldap-int.h636 #define NSLDAPI_VALID_LDAPMOD_ARRAY( mods ) \ argument
637 ( (mods) != NULL )
639 #define NSLDAPI_VALID_NONEMPTY_LDAPMOD_ARRAY( mods ) \ argument
640 ( (mods) != NULL && (mods)[0] != NULL )
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_pwd_policy.c58 LDAPMod **mods={NULL}; local
87 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
91 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
94 if (((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxpwdlife", LDAP_MOD_ADD,
96 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbminpwdlife", LDAP_MOD_ADD,
98 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbpwdmindiffchars", LDAP_MOD_ADD,
100 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbpwdminlength", LDAP_MOD_ADD,
102 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbpwdhistorylength", LDAP_MOD_ADD,
107 if ((st=ldap_add_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) {
118 ldap_mods_free(mods, 1);
[all …]
H A Dldap_misc.c1041 LDAPMod modAttr, *mods[2]={NULL}; local
1051 mods[0] = &modAttr;
1054 st = ldap_modify_ext_s(ld, dn, mods, NULL, NULL);
1086 LDAPMod modAttr, *mods[2]={NULL}; local
1096 mods[0] = &modAttr;
1099 st = ldap_modify_ext_s(ld, dn, mods, NULL, NULL);
1420 krb5_add_member(mods, count) in krb5_add_member() argument
1421 LDAPMod ***mods; in krb5_add_member()
1427 if ((*mods) != NULL) {
1428 for (;(*mods)[i] != NULL; ++i)
[all …]
H A Dldap_services.c57 LDAPMod **mods=NULL; local
89 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
99 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
103 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbserviceflags", LDAP_MOD_ADD,
110 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbhostserver", LDAP_MOD_ADD,
130 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbrealmreferences", LDAP_MOD_ADD,
141 if ((st=ldap_add_ext_s(ld, service->servicedn, mods, NULL, NULL)) != LDAP_SUCCESS) {
169 ldap_mods_free(mods, 1);
191 LDAPMod **mods=NULL; local
208 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbserviceflags", LDAP_MOD_REPLACE,
[all …]
H A Dldap_tkt_policy.c51 LDAPMod **mods=NULL; local
71 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0)
77 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
81 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxticketlife", LDAP_MOD_ADD,
87 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxrenewableage", LDAP_MOD_ADD,
93 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbticketflags", LDAP_MOD_ADD,
99 if ((st=ldap_add_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) {
108 ldap_mods_free(mods, 1);
129 LDAPMod **mods=NULL; local
154 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_ADD, strval)) != 0)
[all …]
H A Dldap_realm.c405 LDAPMod **mods = NULL; local
474 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbsubtrees", LDAP_MOD_REPLACE,
489 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbPrincContainerRef", LDAP_MOD_REPLACE,
497 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbsearchscope", LDAP_MOD_REPLACE,
506 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbMaxRenewableAge", LDAP_MOD_REPLACE,
515 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbMaxTicketLife", LDAP_MOD_REPLACE,
524 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbTicketFlags", LDAP_MOD_REPLACE,
541 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbkdcservers", LDAP_MOD_REPLACE,
555 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbadmservers", LDAP_MOD_REPLACE,
569 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbpwdservers", LDAP_MOD_REPLACE,
[all …]
H A Dldap_principal2.c465 LDAPMod **mods=NULL; local
823 …if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastSuccessfulAuth", LDAP_MOD_REPLACE, strval)) != 0)…
834 … if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastFailedAuth", LDAP_MOD_REPLACE, strval)) != 0) {
842 …if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbLoginFailedCount", LDAP_MOD_REPLACE, entries->fail_au…
847 …if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxticketlife", LDAP_MOD_REPLACE, entries->max_life))…
852 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxrenewableage", LDAP_MOD_REPLACE,
858 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbticketflags", LDAP_MOD_REPLACE,
866 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbprincipalname", LDAP_MOD_REPLACE, strval)) != 0)
878 …if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbprincipalexpiration", LDAP_MOD_REPLACE, strval)) != 0…
893 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbpasswordexpiration",
[all …]
H A Dldap_principal.c263 LDAPMod **mods=NULL; local
311 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbprincipalname", LDAP_MOD_DELETE,
318 if ((st=krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey", LDAP_MOD_DELETE | LDAP_MOD_BVALUES,
334 if ((st=krb5_add_str_mem_ldap_mod(&mods, attributes_set[j], LDAP_MOD_DELETE,
356 if ((st=krb5_add_str_mem_ldap_mod(&mods, "objectclass", LDAP_MOD_DELETE,
362 st=ldap_modify_ext_s(ld, DN, mods, NULL, NULL);
390 ldap_mods_free(mods, 1);
/titanic_41/usr/src/lib/libnisdb/
H A Dldap_op.c1850 freeLdapMod(LDAPMod **mods) { in freeLdapMod() argument
1851 LDAPMod *m, **org = mods; in freeLdapMod()
1853 if (mods == 0) in freeLdapMod()
1856 while ((m = *mods) != 0) { in freeLdapMod()
1858 mods++; in freeLdapMod()
1872 LDAPMod **mods; in search2LdapMod() local
1879 mods = am(myself, (rv->numAttrs + 1) * sizeof (mods[0])); in search2LdapMod()
1880 if (mods == 0) in search2LdapMod()
1908 mods[nm] = am(myself, sizeof (*mods[nm])); in search2LdapMod()
1909 if (mods[nm] == 0) { in search2LdapMod()
[all …]
H A Dldap_print.c396 printLdapMod(LDAPMod **mods, __nis_buffer_t *b) { in printLdapMod() argument
401 if (mods == 0) in printLdapMod()
407 while ((m = *mods) != 0) { in printLdapMod()
439 mods++; in printLdapMod()
H A Dldap_print.h67 void printLdapMod(LDAPMod **mods, __nis_buffer_t *b);
/titanic_41/usr/src/lib/libsldap/common/
H A Dns_writes.c211 freeModList(LDAPMod **mods) in freeModList() argument
216 if (mods == NULL) in freeModList()
219 for (i = 0; mods[i]; i++) { in freeModList()
223 if (mods[i]->mod_type) { in freeModList()
224 if (strcasecmp(mods[i]->mod_type, "objectclass") == 0) in freeModList()
226 free(mods[i]->mod_type); in freeModList()
229 if (mods[i]->mod_bvalues == NULL) in freeModList()
236 if (mods[i]->mod_op & LDAP_MOD_BVALUES) { in freeModList()
237 if (mods[i]->mod_bvalues[0]) in freeModList()
238 free(mods[i]->mod_bvalues[0]); in freeModList()
[all …]
H A Dns_wrapper.c192 char *dn, LDAPMod **mods, in _ns_ldap_modify_ext() argument
197 return (ldap_modify_ext(ld, dn, mods, serverctrls, in _ns_ldap_modify_ext()
203 char *dn, LDAPMod **mods, in _ns_ldap_modify_ext_s() argument
208 return (ldap_modify_ext_s(ld, dn, mods, serverctrls, clientctrls)); in _ns_ldap_modify_ext_s()
213 char *dn, LDAPMod **mods) in _ns_ldap_modify() argument
218 return (ldap_modify(ld, dn, mods)); in _ns_ldap_modify()
223 char *dn, LDAPMod **mods) in _ns_ldap_modify_s() argument
227 return (ldap_modify_s(ld, dn, mods)); in _ns_ldap_modify_s()
/titanic_41/usr/src/uts/common/io/
H A Dl_strplumb.c220 uint_t *anchor, char *mods[]) in kstr_autopush() argument
286 mods[i] != NULL; i++) in kstr_autopush()
287 (void) strcpy(mods[i], push.sap_list[i]); in kstr_autopush()
288 mods[i] = NULL; in kstr_autopush()
333 for (i = 0; i < MAXAPUSH && mods[i] != (char *)NULL; i++) { in kstr_autopush()
334 (void) strcpy(push.sap_list[i], mods[i]); in kstr_autopush()
/titanic_41/usr/src/tools/lintdump/
H A Dlintdump.c354 int mods = atp->dcl_mod >> (pos * 2); in print_mods() local
358 if (LN_ISPTR(mods)) { in print_mods()
370 if (LN_ISFTN(mods)) in print_mods()
373 if (LN_ISFTN(mods)) in print_mods()
381 if (!LN_ISPTR(lastmods) && !LN_ISPTR(mods)) in print_mods()
385 if (LN_ISARY(mods)) { in print_mods()
387 } else if (LN_ISFTN(mods)) { in print_mods()
/titanic_41/usr/src/cmd/idmap/idmap/
H A Dnamemaps.c759 LDAPMod *mods[2] = {NULL, NULL}; in idmap_ad_set() local
761 mods[0] = (LDAPMod *)calloc(1, sizeof (LDAPMod)); in idmap_ad_set()
762 mods[0]->mod_type = strdup(attr); in idmap_ad_set()
764 mods[0]->mod_op = LDAP_MOD_REPLACE; in idmap_ad_set()
766 mods[0]->mod_values = new_values; in idmap_ad_set()
768 mods[0]->mod_op = LDAP_MOD_DELETE; in idmap_ad_set()
769 mods[0]->mod_values = NULL; in idmap_ad_set()
772 ldap_rc = ldap_modify_s(p->ad, dn, mods); in idmap_ad_set()
781 ldap_mods_free(mods, 0); in idmap_ad_set()
/titanic_41/usr/src/cmd/mandoc/
H A Dtbl_layout.c58 static int mods(struct tbl_node *, struct tbl_cell *,
67 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() function
281 return(mods(tbl, cell_alloc(tbl, rp, c, vert), ln, p, pos)); in cell()
/titanic_41/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_dpi.c321 print_modules(mdb_nv_t *mods) in print_modules() argument
325 mdb_nv_rewind(mods); in print_modules()
326 while ((v = mdb_nv_advance(mods)) != NULL) in print_modules()
/titanic_41/usr/src/lib/libast/common/misc/
H A Dprocopen.c212 m->next = proc->mods; in modify()
213 proc->mods = m; in modify()
270 proc->mods = m->next; in modify()
274 proc->mods = m->next; in modify()
298 m = proc->mods; in restore()
299 proc->mods = 0; in restore()
H A Dproclib.h46 struct Mod_s* mods; /* process modification state */ \
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout.c923 modslice_t *mods = (modslice_t *)iter->obj; in get_modified_slices_for_disks() local
924 devconfig_t *slice = mods->slice_devcfg; in get_modified_slices_for_disks()
935 if ((mods->times_modified == 0) || in get_modified_slices_for_disks()
936 (mods->src_slice_desc != (dm_descriptor_t)0)) { in get_modified_slices_for_disks()
/titanic_41/usr/src/cmd/dtrace/
H A Ddtrace.c458 const char *mods[20]; in etcsystem_add() local
469 nmods = dtrace_provider_modules(g_dtp, mods, in etcsystem_add()
470 sizeof (mods) / sizeof (char *) - 1); in etcsystem_add()
472 if (nmods >= sizeof (mods) / sizeof (char *)) in etcsystem_add()
475 mods[nmods++] = "dtrace"; in etcsystem_add()
478 oprintf("forceload: drv/%s\n", mods[line]); in etcsystem_add()

12