~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_ldap/schema/README

  • Committer: Monty Taylor
  • Date: 2010-04-22 02:46:23 UTC
  • mto: (1497.3.4 enable-dtrace)
  • mto: This revision was merged to the branch mainline in revision 1527.
  • Revision ID: mordred@inaugust.com-20100422024623-4urw8fi8eraci08p
Don't overwrite the pandora_vc_revinfo file if we don't have new
authoratative information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
2
 
 
3
 
 
4
 
Explanation of schema
5
 
 
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)".
8
 
 
9
 
 
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.
12
 
 
13
 
 
14
 
Schema and ldif files are located in the server specific directories. 
15
 
 
16
 
gentestusers.sh:
17
 
 
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.
19
 
 
20
 
./gentestusers.sh -h 
21
 
    This will output help on how to use the file.
22
 
 
23
 
Example:
24
 
./gentestusers.sh -p pass -b ../libdrizzle/bin/mysql_password_hash -u user -n 1 -l "ou=people,dc=drizzle,dc=org"
25
 
 
26
 
Will output:
27
 
 
28
 
dn: uid=user0,ou=people,dc=drizzle,dc=org
29
 
objectclass: top
30
 
objectclass: posixAccount
31
 
objectclass: account
32
 
objectclass: drizzleUser
33
 
drizzleUserMysqlPassword: 196BDEDE2AE4F84CA44C47D54D78478C7E2BD7B7
34
 
uidNumber: 500
35
 
gidNumber: 500
36
 
uid: user0
37
 
homeDirectory: /home/user0
38
 
loginshell: /sbin/nologin
39
 
userPassword: pass
40
 
cn: user0
41