Tag Archives: LDIF

ldapmodify: be careful with attribute options

Clients must include the attribute options when using an attribute name following a mod-spec. Consider the following LDIF: # wrong dn: cn=test,c=us changetype: modify replace: your-attribute-name your-attribute-name;binary: binary-stuff your-attribute-name must contain the option (binary in this case). Here is the … Continue reading

Posted in computing, LDAP | Tagged , | Leave a comment

LDAP: Operations by Proxy

LDAP-compliant directory servers like the UnboundID Directory Server support the notion of allowing an authenticated connection to perform operations using the identity of another distinguished name. This is called “operation by proxy” or “Proxied Authorization”. This capability is specified in … Continue reading

Posted in LDAP | Tagged , , , , , , | Leave a comment

LDAP: Inhibiting line-wrap in ldapsearch output

LDIF (LDAP data interchange format), defined in rfc2849, lines may be folded by inserting a line-separator character and a space, except between bytes of a multi-byte UTF-8 character: ldapsearch –port 11389 \ –bindDn cn=RootDn \ –bindPassword password \ –baseDn uid=user.0,ou=people,o=training … Continue reading

Posted in LDAP, UnboundID | Tagged , , , , , | Leave a comment

LDAP: Compare entries in two directory server databases with ldap-diff

The ldap-diff utility provides a way to compare the data stored in two directory server databases. The ldap-diff command-line tool is shipped with the UnboundID Directory Server. Following is an example of executing the utility in my lab on two … Continue reading

Posted in LDAP, UnboundID | Tagged , , , | Leave a comment

LDAP: Moving and renaming entries and user data

Use ldapmodify with the moddn changetype keyword to move or rename entries in an LDAP database. The moddn request cannot be used to move entries between namingContexts or between servers. This article provides an example of moving an entry uid=user.0,ou=people,dc=example,dc=com … Continue reading

Posted in computing, Java, LDAP | Tagged , , , , , , , , , , , | Leave a comment

LDAP: Replace a value of a multi-valued attribute

create an entry add attributes delete all values of a multi-valued attribute example using Java This article describes how to replace values of a multi-valued attribute in a directory database using the ldapmodify tool. For more general information about ldapmodify … Continue reading

Posted in computing, Java, LDAP, UnboundID LDAP SDK | Tagged , , , , , , , | 1 Comment

LDAP: Type or value exists

Introduction The result code decimal 20 (‘Type or value exists’ or ‘Attribute or value exists’) occurs when a user attempts to add an attribute to an entry with a value that already exists for that attribute type for that entry. … Continue reading

Posted in computing, LDAP | Tagged , , , , , , | Leave a comment