Skip to content

Commit b0192d0

Browse files
committed
ldapdelete
1 parent fac1796 commit b0192d0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • docs/staff-docs/infrastructure

docs/staff-docs/infrastructure/ldap.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,15 @@ Finally run `ldapadd`:
155155
$ ldapadd < user_file
156156

157157
This also works on lists of entries to add separated by empty newlines.
158+
159+
### `ldapdelete`
160+
161+
`ldapdelete` is a utility to remove entries from the LDAP directory, which like `ldapadd` requires you to possess an `/admin` principal.
162+
163+
It's important to delete hosts from the LDAP directory once we no longer use them. To do this, first find the host's dn with `ldapsearch`.
164+
165+
`ldapsearch -x cn=bermudatriangle`
166+
167+
Then, use `ldapdelete` to remove the entry.
168+
169+
`ldapdelete "cn=bermudatriangle,ou=Hosts,dc=OCF,dc=Berkeley,dc=EDU"`

0 commit comments

Comments
 (0)