LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix, LDAP and Samba (https://www.linuxquestions.org/questions/linux-server-73/postfix-ldap-and-samba-637251/)

tpe 04-23-2008 05:27 AM

Postfix, LDAP and Samba
 
I have already managed to setup Samba with LDAP back-end as PDC and BDC. My new task is to setup Postfix (in 2 servers, as master/slave mail servers). Email accounts have to be the same with the Samba logins.

Samba uses the SMBLDAP tools. I have followed the tutorials and the add user section of smb.conf is:
Code:

/usr/sbin/smbldap-useradd -m "%u"
However, when I tried to retrieve the mail attribute of users I failed! The reason seems to be that the smbldap-useradd does not add that attribute automatically. Then I tried to add that attribute using the "-M" flag.
From command line the
Code:

/usr/sbin/smbldap-useradd -m testpostfix -M mailtest
added the user succesfully in LDAP. BUT: The user had NO samba attributes! Thus, I deleted the user and added the -a flag:
Code:

/usr/sbin/smbldap-useradd -a -m testpostfix -M mailtest
This time I had the samba specific attributes (eg SambaSID, SambaNTPassword). However, the mail attribute still does not exist! I thought that the problem was something else (aka ldapsearch), but I added that following search filter:
Code:

"(objectClass=person)"
From there it was clear that the mail attribute was empty! Can someone help me please?

In any case, I found no good tutorial/howto/example on the subject, (Postfix, LDAP, Samba).

I am looking for a good how-to on the issue, or even better a working example. All searches in Google and HowTo sites have nothing on the issue (Postfix, LDAP, Samba). Any help would be appreciated.

bathory 04-23-2008 07:20 AM

You should read this as postfix does not have its own schema for ldap

Regards

tpe 04-23-2008 07:25 AM

Quote:

Originally Posted by bathory (Post 3130180)
You should read this as postfix does not have its own schema for ldap

Regards

Correct, but LDAPAdmin is a Windows only tool. In any case, I cannot see how his will solve my problem. Should I add the Postfix schema to LDAP and then use LDAP Admin instead of MS tools?

bathory 04-23-2008 07:34 AM

Exactly. You should borrow the postfix schema (and maybe parts of main.cf), include it in slapd.conf and use whatever tool you want to administer ldap.


All times are GMT -5. The time now is 01:46 AM.