Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcache.c65 LDAPMod **mods; in nsldapi_add_result_to_cache() local
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()
107 if (mods[i] == NULL) { in nsldapi_add_result_to_cache()
115 mods[i]->mod_type = a; in nsldapi_add_result_to_cache()
125 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
132 mods = (LDAPMod **)NSLDAPI_REALLOC( mods, in nsldapi_add_result_to_cache()
134 if (mods == NULL) { in nsldapi_add_result_to_cache()
143 if (mods[i] == NULL) { 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.c94 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()
109 NSLDAPI_FREE( (char *) mods[i] ); 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 )
/illumos-gate/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)
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,
118 ldap_mods_free(mods, 1);
135 LDAPMod **mods=NULL; local
156 || ((st=krb5_add_int_mem_ldap_mod(&mods, "krbminpwdlife", LDAP_MOD_REPLACE,
[all …]
H A Dldap_misc.c1051 mods[0] = &modAttr;
1096 mods[0] = &modAttr;
1427 if ((*mods) != NULL) {
1435 *mods = lmods;
1436 (*mods)[i+1] = NULL;
1440 *mods = NULL;
1449 LDAPMod ***mods; in krb5_add_str_mem_ldap_mod()
1496 LDAPMod ***mods; in krb5_add_ber_mem_ldap_mod()
1525 (*mods)[i]->mod_bvalues[j]->bv_val = malloc((*mods)[i]->mod_bvalues[j]->bv_len);
1546 LDAPMod ***mods; in krb5_add_int_arr_mem_ldap_mod()
[all …]
H A Dldap_services.c57 LDAPMod **mods=NULL; local
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,
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,
340 ldap_mods_free(mods, 1);
575 LDAPMod **mods=NULL; local
590 st = ldap_modify_ext_s(ld, service, mods, NULL, NULL);
[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)
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
159 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbmaxticketlife", LDAP_MOD_REPLACE,
171 if ((st=krb5_add_int_mem_ldap_mod(&mods, "krbticketflags", LDAP_MOD_REPLACE,
[all …]
H A Dldap_realm.c405 LDAPMod **mods = NULL; local
626 if (mods != NULL) {
769 ldap_mods_free(mods, 1);
788 LDAPMod **mods = NULL; local
856 ldap_mods_free(mods, 1);
857 mods=NULL;
896 ldap_mods_free(mods, 1);
964 LDAPMod **mods = NULL; local
1101 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbkdcservers", LDAP_MOD_ADD,
1116 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbadmservers", LDAP_MOD_ADD,
[all …]
H A Dldap_principal2.c465 LDAPMod **mods=NULL; local
893 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbpasswordexpiration",
946 if ((st=krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey",
954 if ((st=krb5_add_str_mem_ldap_mod(&mods,
974 if ((st=krb5_add_str_mem_ldap_mod(&mods, "krbLastPwdChange",
1037 if ((st=krb5_add_ber_mem_ldap_mod(&mods, "krbExtraData",
1080 if (mods == NULL)
1092 st = ldap_add_ext_s(ld, standalone_principal_dn, mods, NULL, NULL);
1139 st=ldap_modify_ext_s(ld, xargs.dn, mods, NULL, NULL);
1141 st = ldap_modify_ext_s(ld, principal_dn, mods, NULL, NULL);
[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);
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_op.c1852 if (mods == 0) in freeLdapMod()
1857 mods++; in freeLdapMod()
1871 LDAPMod **mods; in search2LdapMod() local
1878 mods = am(myself, (rv->numAttrs + 1) * sizeof (mods[0])); in search2LdapMod()
1879 if (mods == 0) in search2LdapMod()
1907 mods[nm] = am(myself, sizeof (*mods[nm])); in search2LdapMod()
1995 return (mods); in search2LdapMod()
2147 if (mods == 0) { in ldapModifyObjectClass()
2205 if (mods != 0) in ldapModifyObjectClass()
2375 mods = 0; in ldapModify()
[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);
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_writes.c216 if (mods == NULL) in freeModList()
262 free(mods); in freeModList()
288 if (mods == NULL) { in __s_api_makeModListCount()
296 free(mods); in __s_api_makeModListCount()
610 return (mods); in __s_api_makeModListCount()
613 freeModList(mods); in __s_api_makeModListCount()
662 LDAPMod **mods, in write_state_machine() argument
1124 LDAPMod **mods; in __ns_ldap_addAttr() local
1160 LDAPMod **mods; in __ns_ldap_delAttr() local
1281 LDAPMod **mods; in __ns_ldap_repAttr() local
[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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Dnamemaps.c760 LDAPMod *mods[2] = {NULL, NULL}; in idmap_ad_set() local
762 mods[0] = (LDAPMod *)calloc(1, sizeof (LDAPMod)); in idmap_ad_set()
763 mods[0]->mod_type = strdup(attr); in idmap_ad_set()
765 mods[0]->mod_op = LDAP_MOD_REPLACE; in idmap_ad_set()
767 mods[0]->mod_values = new_values; in idmap_ad_set()
769 mods[0]->mod_op = LDAP_MOD_DELETE; in idmap_ad_set()
770 mods[0]->mod_values = NULL; in idmap_ad_set()
773 ldap_rc = ldap_modify_s(p->ad, dn, mods); in idmap_ad_set()
782 ldap_mods_free(mods, 0); in idmap_ad_set()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_layout.c56 static void mods(struct tbl_node *, struct tbl_cell *,
65 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() function
262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dprocopen.c247 m->next = proc->mods; in modify()
248 proc->mods = m; in modify()
307 proc->mods = m->next; in modify()
311 proc->mods = m->next; in modify()
335 m = proc->mods; in restore()
336 proc->mods = 0; in restore()
H A Dproclib.h48 struct Mod_s* mods; /* process modification state */ \
/illumos-gate/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()
/illumos-gate/usr/src/head/
H A Dldap.h494 int LDAP_CALL ldap_modify(LDAP *ld, const char *dn, LDAPMod **mods);
496 LDAPMod **mods);
587 LDAPMod **mods, LDAPControl **serverctrls, LDAPControl **clientctrls,
590 LDAPMod **mods, LDAPControl **serverctrls, LDAPControl **clientctrls);
1157 LDAP_API(void) LDAP_CALL ldap_mods_free(LDAPMod **mods, int freemods);

12