I am using Luc Saillard's example file for creating my Ldap mailaccount entries.
These Ldap entries use the authldap.schema.

With using Luc's example, I was having trouble with the maildir entry.
Authentication would not work unless the LDAP_MAILDIR was defined in
the authldaprc. 

I wondering if this would be the proper way to implement the maildir in
the authldaprc ? It works, but I am worried if it may cause problems ?


/etc/courier/authldaprc

# is this OK or could it cause problems ? 
LDAP_HOMEDIR            homeDirectory
LDAP_MAILDIR            homeDirectory
# end of question

LDAP_SERVER             192.146.1.115
LDAP_PORT               389
LDAP_BASEDN             ou=mailaccounts,dc=mycoll,dc=edu
LDAP_BINDDN             cn=courier,dc=mycoll,dc=edu
LDAP_BINDPW             mysecret
LDAP_TIMEOUT            10      
LDAP_MAIL               mail
LDAP_DOMAIN             mycoll.edu
LDAP_GLOB_UID           vmail #maps to uid 1001
LDAP_GLOB_GID           vmail #maps to gid 1001
LDAP_MAILDIRQUOTA       Quota
LDAP_FULLNAME           cn
LDAP_CLEARPW            clearPassword
LDAP_CRYPTPW            userPassword

....
Luc's Example:
----------------

dn: [EMAIL PROTECTED], o=example, c=com
ObjectClass: CourierMailAccount
mail: [EMAIL PROTECTED]
mail: xyz123
clearPassword: tux
userPassword: {MD5}WrbkuYvH+3FvwH7Zj+34Ag==
homeDirectory: /home/xyz123
uidNumber: 1001
gidNumber: 1001

My version:
--------------

dn: [EMAIL PROTECTED],ou=mailaccounts, dc=mycoll, dc=edu
objectclass: couriermailaccount
mail: [EMAIL PROTECTED]
mail: useradmin2
cn: mail user admin
uidNumber: 1001
gidNumber: 1001
homedirectory: /home/staff/useradmin2
quota: 10M
clearpassword: useradmin2
description: courier user admin no shell account

dn: [EMAIL PROTECTED],ou=mailaccounts,dc=mycoll,dc=edu
objectclass: couriermailaccount
cn: test t. tinker
homedirectory: /home/staff/tester1
mail: [EMAIL PROTECTED]
mail: tester1
uidNumber: 1001
gidNumber: 1001
quota: 10M
clearpassword: tester1

Just incase anyone is wondering why I am defining the uid and gid with
globing enabled, the authldap.schema requires it.
...
objectclass ( 1.3.6.1.4.1.10018.1.2.1 NAME 'CourierMailAccount' SUP top
AUXILIARY
        DESC 'Mail account object as used by the Courier mail server'
        MUST ( mail $ homeDirectory $ uidNumber $ gidNumber )
...

*********************************
 *Theodore Knab                 *
 * --------------------------- *
*********************************

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to