|
Hi,
You need to include the objectClass 'qmailUser' in
your qmail-ldap installation. copy the
file qmail.schema located in your qmail source
directory to /etc/openldap/schema/
When you add a user in your LDAP
directory, the ldif file for user bgokul (lets say
users.ldif) along with the other information should appear like something
below-
note that you will need to write a script where
username is replaced by desired username at the time of creating a new user
account. The lines in bold become available when you include the qmail
schema.
objectClass: top
objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount objectClass: sambaSamAccount objectClass:
qmailUser
mail:
/var/qmail/maildirs/bgokul/
mailAlternateAddress: bgokul@mail.yourdomain.com
mailAlternateAddress: bgokul@yourdomain.com
mailAlternateAddress: [EMAIL PROTECTED]
accountStatus: Active
cn: bgokul
sn: bgokul uid: bgokul uidNumber: 1008 gidNumber: 512 homeDirectory: /home/bgokul loginShell: /bin/bash gecos: System User description: System User sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 displayName: System User sambaSID: S-1-5-21-3132826086-436037722-1371663535-3016 sambaPrimaryGroupSID: S-1-5-21-3132826086-436037722-1371663535-512 sambaLogonScript: startup.bat sambaProfilePath: \\SBS.SF\profiles\bgokul sambaHomePath: \\SBS.SF\homes\bgokul sambaHomeDrive: F: sambaLMPassword: B53EDA2944346527E034C60FA8AC8477 sambaNTPassword: E41E060CD5B8B2F06ECEB1BC84974D16 sambaPwdCanChange: 1126858301 sambaPwdMustChange: 2147483647 sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000 00000000 sambaPwdLastSet: 1126858301 sambaAcctFlags: [U ] userPassword:: e1NNRDV9cnV2Ky85SzhENHM1Zm50OUV0Z2wyK1dvLzFvPQ Regards,
Amit
|
