6.7 Removing LDAP Entries

To remove an object from the Novell Linux Point of Service LDAP directory, use the --remove option and the --DN attribute with the distinguished name of the object to delete. If the referred object has subentries, you must add the --recursive option.

Table 6-16 summarizes the posAdmin command options for deleting LDAP objects.

Table 6-16 Command options for deleting LDAP objects

Option

Type

Description

--DN

must

Distinguished name of the object to delete

--recursive

may

Option to delete an object with all sub-objects.

The following command deletes an scServerContainer with all servers and all services (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--remove --recursive --DN cn=server,cn=east,ou=boston,o=mycorp,c=us