主题: 整合ldap帐号做系统登录的问题
公司有两openldap 数据库,一套是做Linux 系统登录的,一套就是邮件服器的,我想把两个数据库整合成一个,再做主从复制.
192.168.0.1 的数据格式如下:
dn: cn=jianda,ou=People,dc=jieli,dc=com
sn: jianda
cn:: IGppYW5kYQ==
uid: jianda
uidNumber: 1008
gidNumber: 3333
homeDirectory: /fhome/jianda
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
loginShell: /bin/bash
userPassword:: ***********************
邮件服器的格式如下:
dn: mail=www@zh-jieli.com,ou=Users,domainName=zh-jieli.com,o=domains,dc=zh-jie
li,dc=com
objectClass: inetOrgPerson
objectClass: pwdPolicy
objectClass: shadowAccount
objectClass: amavisAccount
objectClass: mailUser
objectClass: top
cn: www
sn: www
uid: www
givenName: www
mail: www@zh-jieli.com
accountStatus: active
storageBaseDirectory: /var/vmail
mailMessageStore: vmail1/zh-jieli.com/w/w/w/www-2011.06.16.18.52.02/
homeDirectory: /var/vmail/vmail1/zh-jieli.com/w/w/w/www-2011.06.16.18.52.02/
mailQuota: 104857600
enabledService: mail
enabledService: internal
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: deliver
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: displayedInGlobalAddressBook
enabledService: shadowaddress
userPassword:: *****************************************************
pwdAllowUserChange: TRUE
pwdAttribute: userPassword
pwdCheckQuality: 2
pwdExpireWarning: 600
pwdFailureCountInterval: 6
pwdGraceAuthNLimit: 5
pwdInHistory: 5
pwdLockout: TRUE
pwdLockoutDuration: 0
pwdMaxAge: 30
pwdMaxFailure: 5
pwdMinAge: 7
pwdMinLength: 6
pwdMustChange: FALSE
pwdSafeModify: FALSE
整合时发现两个数据库的homeDirectory冲突了,请问能有办法在邮件服务器的openldap里再添加一个homeDirectory=/home/www 做Linux系统登录吗? 谢谢