LDAP-UX Client Services B.04.15 with Microsoft Windows Active Directory Server Administrator's Guide (edition 8)

Table Of Contents
The -O option functions properly with a Windows 2003 R2 ADS, because it uses standard RFC
2307 attributes with exception of the homeDirectory attribute. If ldapugdel is used to access
a Windows 2003 R2 ADS, the ldapugdel -t passwd -O command removes the
posixAccount object class and following attributes,
uidNumber
gidNumber
loginShell
gecos
The ldapugdel -t group -O command removes the posixGroup object class and following
attributes:
gidNumber
memberUId
userPassword
NOTE: The Microsoft Services for UNIX (SFU) schema does not use RFC 2307 standard attribute
mapping. Also, ldapugdel does not support attribute mapping as defined by the LDAP-UX
configuration profile when the tool is used to access a Windows ADS 2000/2003 with msSFU 2.0
or msSFU 3.0/3.5 schema installed. When the -O option is specified and ldapugdel determines
that it is connected to a Windows ADS with these schema installed, ldapugdel does not remove
the mapped POSIX object class and attributes (msSFU30xxx or msSFU20xxx) for the specified
user or group entry.
Examples
This section provides examples of using ldapugdel.
Use LDAP_BINDDN to specify the Distinguished Name (DN) of a user with sufficient directory
server privilege to delete users or groups in the LDAP directory server. Use LDAP_BINDCRED
to specify a password for the LDAP user specified by LDAP_BINDDN. Alternately, you can input
LDAP administrator bind identity and credential interactively with a prompt (-P) option.
Run the following commands to specify the LDAP_BINDDN and LDAP_BINDCRED environment
variables:
export LDAP_BINDDN = "cn=Jane Admin,ou=admins,dc=org,dc=example,dc=com"
export LDAP_BINDCRED = "Jane's password"
Run the following commands to delete the entire user account entry, skeith:
cd /opt/ldapux/bin
./ldapugdel -t passwd skeith
In this example, ldapugdel is used to access a Windows 2003 R2 ADS. The following command
deletes only the posixAccount object class and associated attributes, uidnumber, gidNumber
loginShell and gecos, without delete the entire user entry, msmith:
./ldapugdel -t passwd -O msmith
Run the following command to delete the entire group entry with the Distinguished Name,
cn=groupA,ou=groups,dc=example,dc=com":
./ldapugdel -t group -D "cn=groupA,ou=groups,dc=org,dc=example,dc=com"
In this example, ldapugdel is used to access a Windows 2003 R2 ADS. The following command
to delete only the posixGroup object class and associated attributes, gidNumber, memberUid
and userPassword, without delete the entire group entry, groupB:
./ldapugdel -t group -O groupB
136 Administering LDAP-UX Client Services