1
These are the first draft of LDAP schema attributes for drizzle to do MySQL authentication. Additional attributes needed to be added for MySQL authentication because of the way MySQL does authentication.
6
Objectclass: drizzleUser
7
This is used to identify a user can be used for drizzle authentication module. This object class can have drizzleUserMysqlPassword attribute. Search filter should be "(objectclass=drizzleUser)".
10
Attribute: drizzleUserMysqlPassword
11
Used to store the MySQL sha1(sha1) hash of the users password, it is required that the LDAP object have the drizzleUser objectclass. Also this attribute must be readable by the user that drizzle is using to access the LDAP server. Unfortunately the way that MySQL authentication is written the password hash has to be readable by the server.
14
Schema and ldif files are located in the server specific directories.
18
This is a script to quickly generate users for testing the drizzle mysql ldap authentication module. Note this is not the de facto way of doing things more of just a quick start example.
21
This will output help on how to use the file.
24
./gentestusers.sh -p pass -b ../libdrizzle/bin/mysql_password_hash -u user -n 1 -l "ou=people,dc=drizzle,dc=org"
28
dn: uid=user0,ou=people,dc=drizzle,dc=org
30
objectclass: posixAccount
32
objectclass: drizzleUser
33
drizzleUserMysqlPassword: 196BDEDE2AE4F84CA44C47D54D78478C7E2BD7B7
37
homeDirectory: /home/user0
38
loginshell: /sbin/nologin