Lines Matching defs:attrs
40 BerElement * ldap_build_add_req(LDAP *ld, char *dn, LDAPMod **attrs,
50 * attrs SEQUENCE OF SEQUENCE {
71 for ( i = 0; attrs[i] != NULL; i++ ) {
72 if ( ( attrs[i]->mod_op & LDAP_MOD_BVALUES) != 0 ) {
73 rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type,
74 attrs[i]->mod_values );
76 rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type,
77 attrs[i]->mod_values );
130 * LDAPMod *attrs[] = {
136 * msgid = ldap_add( ld, dn, attrs );
138 int ldap_add( LDAP *ld, char *dn, LDAPMod **attrs )
148 if ((ber = ldap_build_add_req(ld, dn, attrs, NULL)) == NULLBER){
164 ldap_add_s( LDAP *ld, char *dn, LDAPMod **attrs )
169 if ( (msgid = ldap_add( ld, dn, attrs )) == -1 )
185 * attrs List of attributes for the entry. This is a null-
194 * LDAPMod *attrs[] = {
201 * retcode = ldap_add_ext( ld, dn, attrs, srvctrls, cltctrls, &msgid );
204 int ldap_add_ext(LDAP *ld, char *dn, LDAPMod **attrs,
216 if ((ber = ldap_build_add_req(ld, dn, attrs, serverctrls)) == NULLBER){
247 int ldap_add_ext_s(LDAP *ld, char *dn, LDAPMod **attrs,
254 if ((retcode = ldap_add_ext(ld, dn, attrs, serverctrls, clientctrls, &msgid)) != LDAP_SUCCESS)