30,997
edits
| Line 74: | Line 74: | ||
ldapadd -f init.ldif -D "cn=admin,dc=mydomain,dc=com" -w secret | ldapadd -f init.ldif -D "cn=admin,dc=mydomain,dc=com" -w secret | ||
</source> | </source> | ||
== Create few users | |||
Create a file init.ldif with your organization. For example (take care to keep empty line between each block): | |||
<source lang="ini"> | |||
# Some User | |||
dn: uniqueIdentifier=some.user,ou=people,dc=example,dc=com | |||
objectClass: organizationalPerson | |||
objectClass: person | |||
objectClass: top | |||
objectClass: PostfixBookMailAccount | |||
objectClass: extensibleObject | |||
cn: Some User | |||
givenName: User | |||
mail: some.user@example.com | |||
mailEnabled: TRUE | |||
sn: Some | |||
uniqueIdentifier: some.user | |||
userPassword: {SSHA}Ifz0oceGr1wwBP1BtBduPLTVbo6A2Qkd | |||
</source> | |||
Use '''slappasswd''' to generate a password. | |||
= Troubleshooting = | = Troubleshooting = | ||