summary refs log tree commit diff
path: root/docs/ldap.md
blob: 12c6d0171db826426d06d97c175b0f8996df34e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Works

ldapsearch -x -H ldap://127.0.0.1 -D "cn=admin,dc=internetsafetylabs,dc=org" -w secret -b "dc=internetsafetylabs,dc=org"

ldapdelete -x  -D "cn=admin,dc=internetsafetylabs,dc=org" -w secret uid=jdoe,ou=People,dc=internetsafetylabs,dc=org

ldapmodify -x  -D "cn=admin,dc=internetsafetylabs,dc=org" -w secret -f modtest.ldif
modifying entry "ou=Groups,dc=internetsafetylabs,dc=org"
	modtest.ldif:
		dn: ou=Groups,dc=internetsafetylabs,dc=org
		changetype: modify
		replace: ou
		ou: groups
		
		changetype: modrdn
		newrdn: ou=groups
		deleteoldrdn: 0
		-
ldapmodify -x  -D "cn=admin,dc=internetsafetylabs,dc=org" -w secret -f modtest.ldif
modifying entry "ou=Groups,dc=internetsafetylabs,dc=org"

modifying rdn of entry "ou=Groups,dc=internetsafetylabs,dc=org"


## Bootstrapping your user by hand

ldappasswd -W -D uid=root,dc=internetsafetylabs,dc=org -S uid=irenes,ou=staff,ou=people,dc=internetsafetylabs,dc=org

replace with your own user's distinguished name