Originally posted by linux-mad
View Post
What i did was the following (it might not be a perfect solution, but it works for me even though there is some manual work to be done which obviously isn't all that great for bigger companies). Since OX documentation is a tad scarce (make that inexistant ), this is the only way as far as i know to get some sort of ADS integration.
Steps:
1. configure samba/winbindd and join your linux server into existing ADS domain
2. install and configure underlaying mail system (i am using courier-imap + postfix). This is the part where manual work comes in place, i did configure pam to autocreate users $HOME, however for all my users i had to manually issue the command "maildirmake Maildir" inside their respective $HOME (HINT: "maildirmake /etc/skel/Maildir").
3. install open-xchange-authentication-imap package
4. modify your pam "imap" file with following values
auth required /lib/security/pam_winbind.so
account required /lib/security/pam_winbind.so
session required /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022 debug
account required /lib/security/pam_winbind.so
session required /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022 debug
6. edit ldapsync-ads.conf file and reflect your ADS setup in it, once you have completed modifying both mapping.ads.conf and ldapsync-ads.conf you will have to execute the oxldapsync.pl script.
Sample ldapsync-ads.conf
ldapuri = ldap://name_or_ip_of_your_dc
userbasedn = "cn=Users,dc=foobar,dc=bar"
groupbasedn = "cn=Users,dc=foobar,dc=bar"
ldapuserdn = "cn=Administrator,cn=Users,dc=foobar,dc=bar"
ldapuserpassword = super_secret_password
userbasedn = "cn=Users,dc=foobar,dc=bar"
groupbasedn = "cn=Users,dc=foobar,dc=bar"
ldapuserdn = "cn=Administrator,cn=Users,dc=foobar,dc=bar"
ldapuserpassword = super_secret_password
Code:
/etc/oxldapsync/sbin/oxldapsync.pl -f /etc/oxldapsync/etc/ldapsync-ads.conf -c 1 -A contextadmin -P context_admin_pass -v -s
I will eventually make a thread in these forums with concrete examples (file modifications) of how i did the "integration" of OX into ADS domain.
Hope it sheds a little light on your problem.
Regards,
Daniel
Leave a comment: