LDAPMod
LDAPMod *mods[2] = {NULL, NULL};
mods[0] = (LDAPMod *)calloc(1, sizeof (LDAPMod));
ldaptool_add_ext_s( LDAP *ld, const char *dn, LDAPMod **attrs,
ldaptool_modify_ext_s( LDAP *ld, const char *dn, LDAPMod **mods,
static int domodify( LDAP *ld, char *dn, LDAPMod **pmods, int newentry );
static int domodify( char *dn, LDAPMod **pmods, int newentry );
freepmods( LDAPMod **pmods )
LDAPMod **pmods;
LDAPMod **pmods;
addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen )
LDAPMod **pmods;
if (( pmods = (LDAPMod **)LDAPTOOL_SAFEREALLOC( pmods, (i + 2) *
sizeof( LDAPMod * ))) == NULL ) {
if (( pmods[ i ] = (LDAPMod *)calloc( 1, sizeof( LDAPMod )))
static void addmodifyop( LDAPMod ***pmodsp, int modop, char *attr,
static void freepmods( LDAPMod **pmods );
domodify( LDAP *ld, char *dn, LDAPMod **pmods, int newentry )
domodify( char *dn, LDAPMod **pmods, int newentry )
static LDAPMod **
LDAPMod tmp;
LDAPMod **result;
result = (LDAPMod **) malloc( sizeof(LDAPMod *) );
result = (LDAPMod **) realloc( result,
sizeof(LDAPMod *) * (num + 1) );
result[num] = (LDAPMod *) malloc( sizeof(LDAPMod) );
result = (LDAPMod **) realloc( result, sizeof(LDAPMod *) * (num + 1) );
LDAPMod **mods, **attrs;
int ldaptool_add_ext_s( LDAP *ld, const char *dn, LDAPMod **attrs,
int ldaptool_modify_ext_s( LDAP *ld, const char *dn, LDAPMod **mods,
LDAP_API(void) LDAP_CALL ldap_mods_free(LDAPMod **mods, int freemods);
int LDAP_CALL ldap_add(LDAP *ld, const char *dn, LDAPMod **attrs);
int LDAP_CALL ldap_add_s(LDAP *ld, const char *dn, LDAPMod **attrs);
int LDAP_CALL ldap_modify(LDAP *ld, const char *dn, LDAPMod **mods);
LDAPMod **mods);
int LDAP_CALL ldap_add_ext(LDAP *ld, const char *dn, LDAPMod **attrs,
LDAPMod **attrs, LDAPControl **serverctrls, LDAPControl **clientctrls);
LDAPMod **mods, LDAPControl **serverctrls, LDAPControl **clientctrls,
LDAPMod **mods, LDAPControl **serverctrls, LDAPControl **clientctrls);
LDAPMod modAttr, *mods[2]={NULL};
LDAPMod modAttr, *mods[2]={NULL};
LDAPMod ***mods;
LDAPMod **lmods=NULL;
lmods = (LDAPMod **) realloc((*mods), (2+i) * sizeof(LDAPMod *));
(*mods)[i] = (LDAPMod *) calloc(1, sizeof (LDAPMod));
LDAPMod ***mods;
LDAPMod ***mods;
LDAPMod ***mods;
LDAPMod ***mods;
krb5_add_member(LDAPMod ***, int *);
krb5_add_str_mem_ldap_mod(LDAPMod ***, char *, int, char **);
krb5_add_ber_mem_ldap_mod(LDAPMod ***, char *, int, struct berval **);
krb5_add_int_arr_mem_ldap_mod(LDAPMod ***, char *, int, int *);
krb5_add_int_mem_ldap_mod(LDAPMod ***, char *, int , int);
krb5_ldap_free_mod_array(LDAPMod **);
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
LDAPMod **mods={NULL};
LDAPMod **mods = NULL;
LDAPMod **mods = NULL;
LDAPMod **mods = NULL;
LDAPMod realmclass, subtreeclass, seccontclass, krbcontclass;
LDAPMod *realmarr[3]={NULL}, *subtreearr[3]={NULL}, *seccontarr[3]={NULL}, *krbcontarr[3]={NULL};
LDAPMod realmclass, subtreeclass;
LDAPMod *realmarr[3] = { NULL }, *subtreearr[3] = { NULL };
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
LDAPMod **mods=NULL;
int msgid, ber_tag_t tag, const char *dn, LDAPMod **attrs);
int msgid, ber_tag_t tag, const char *dn, LDAPMod **mods);
ldap_add_s( LDAP *ld, const char *dn, LDAPMod **attrs )
ldap_add_ext_s( LDAP *ld, const char *dn, LDAPMod **attrs,
ldap_add( LDAP *ld, const char *dn, LDAPMod **attrs )
ldap_add_ext( LDAP *ld, const char *dn, LDAPMod **attrs,
mods[i] = (LDAPMod *)NSLDAPI_CALLOC( 1, sizeof(LDAPMod) );
mods = (LDAPMod **)NSLDAPI_REALLOC( mods,
sizeof(LDAPMod *) * max );
mods[i] = (LDAPMod *)NSLDAPI_CALLOC( 1, sizeof(LDAPMod) );
LDAPMod **mods;
mods = (LDAPMod **)NSLDAPI_MALLOC( GRABSIZE * sizeof(LDAPMod *) );
mods = (LDAPMod **)NSLDAPI_REALLOC( mods,
sizeof(LDAPMod *) * max );
ldap_mods_free( LDAPMod **mods, int freemods )
ldap_modify_s( LDAP *ld, const char *dn, LDAPMod **mods )
ldap_modify_ext_s( LDAP *ld, const char *dn, LDAPMod **mods,
ldap_modify( LDAP *ld, const char *dn, LDAPMod **mods )
ldap_modify_ext( LDAP *ld, const char *dn, LDAPMod **mods,
freeLdapModEntry(LDAPMod *m) {
freeLdapMod(LDAPMod **mods) {
LDAPMod *m, **org = mods;
LDAPMod **
LDAPMod **mods;
LDAPMod **mods = 0;
LDAPMod **mods = 0;
LDAPMod **m;
LDAPMod **mods = 0;
LDAPMod **search2LdapMod(__nis_rule_value_t *rv, int add,
printLdapMod(LDAPMod **mods, __nis_buffer_t *b) {
LDAPMod *m;
void printLdapMod(LDAPMod **mods, __nis_buffer_t *b);
char *dn, LDAPMod **mods,
char *dn, LDAPMod **mods,
char *dn, LDAPMod **mods)
char *dn, LDAPMod **mods)
char *dn, LDAPMod **attrs,
char *dn, LDAPMod **attrs,
char *dn, LDAPMod **attrs)
char *dn, LDAPMod **attrs)
LDAPMod **mods;
LDAPMod **mods;
LDAPMod **mods;
LDAPMod **mods = NULL;
LDAPMod *mod,
freeModList(LDAPMod **mods)
static LDAPMod **
LDAPMod **mods, *modlist;
mods = (LDAPMod **)calloc((count + 3), sizeof (LDAPMod *));
modlist = (LDAPMod *)calloc(count + 2, sizeof (LDAPMod));
static LDAPMod **
LDAPMod **mods,
_addLDAPmodValue(LDAPMod ***attrs, char *type, char *value)
*attrs = (LDAPMod **)calloc(1, 2 * sizeof (LDAPMod *));
*attrs = (LDAPMod **)
realloc(*attrs, (i+2) * sizeof (LDAPMod *));
(*attrs)[i] = (LDAPMod *) malloc(sizeof (LDAPMod));
_modLDAPmodValue(LDAPMod ***attrs, char *type, char *value)
*attrs = (LDAPMod **)calloc(1, 2 * sizeof (LDAPMod *));
*attrs = (LDAPMod **)
realloc(*attrs, (i+2) * sizeof (LDAPMod *));
(*attrs)[i] = (LDAPMod *) malloc(sizeof (LDAPMod));
_constructAddLDAPMod(uchar_t *printerName, char **attrList, LDAPMod ***attrs)
static NSL_RESULT _addLDAPmodValue(LDAPMod ***attrs, char *type, char *value);
static NSL_RESULT _modLDAPmodValue(LDAPMod ***attrs, char *type, char *value);
char **attrList, LDAPMod ***attrs);
char ***oldKVPList, LDAPMod ***attrs)
char **attrList, char ***oldKVPList, LDAPMod ***attrs);
static NSL_RESULT _attrAddKVP(LDAPMod ***attrs, char **kvpList, int kvpExists);
_attrAddKVP(LDAPMod ***attrs, char **kvpList, int kvpExists)
LDAPMod **attrs = NULL;
LDAPMod **attrs = NULL;
LDAPMod *attrs[SMB_ADS_COMPUTER_NUM_ATTR];
LDAPMod *attrs[2];
if (smb_ads_alloc_attr(attrs, sizeof (attrs) / sizeof (LDAPMod *)) != 0)
LDAPMod *attrs[2];
if (smb_ads_alloc_attr(attrs, sizeof (attrs) / sizeof (LDAPMod *)) != 0)
static int smb_ads_alloc_attr(LDAPMod **, int);
static void smb_ads_free_attr(LDAPMod **);
smb_ads_alloc_attr(LDAPMod *attrs[], int num)
bzero(attrs, num * sizeof (LDAPMod *));
attrs[i] = (LDAPMod *)malloc(sizeof (LDAPMod));
smb_ads_free_attr(LDAPMod *attrs[])
LDAPMod *attrs[SMB_ADS_SHARE_NUM_ATTR];