Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-15-2003, 02:18 AM
|
#1
|
Member
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273
Rep:
|
courier-imap + ldap + samba
G'day,
I am having some trouble or at least I am about to have some trouble and I am really looking for some advice rather than an answer as such.
I run a Gentoo box as our PDC with samba authenticating against LDAP. This works like a treat.
I have another box, soon to be decommissioned that is running qmail with courier-imap.
I have installed courier imap on the Gentoo box and it is all set to go authenticating against LDAP, but I have not managed to get the LDAP part working yet.
Ideally I want courier only to do authentification against the details already stored in LDAP (so that there NT password becomes there imap password)
I have no interest at this stage in virtual mailboxes or anything like that every user has a real username, home directory, etc. so all I want to do is authenticate.
I have tried to follow the postfix-courier-ldap howto but can't seem to get this to work with the existing auth data already in LDAP.
If anyone out there has a similar setup (the MTA is not important it is only imap and samba I need to get working together at this stage) I would love to hear how you did it.
ALternatively if there is some other better way of having common passwords then let me know, that is after all wahat I am trying to achieve.
Thanks in advance....
|
|
|
08-15-2003, 01:30 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I got this working too except they pulled the plug on the e-mail side
You need to use the userPassword field for courier and also setup the account as a courier imap account objectClass. I even got it going with qmail authenticating and verifying users from ldap.
I have some links at work I'll post them on Monday if you are still having problems.
|
|
|
08-18-2003, 01:10 AM
|
#3
|
Member
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273
Original Poster
Rep:
|
thanks for the reply,
so I don't have a userPassword attribute but I can easily add that, however I assume that the courier imap account abjectClass you are refering to is in a custom schema, it is not in any schema that I have.
I am new to ldap so maybe I am mis-understanding but as I understand it the objectClass's are defined in the schema's and presently I have the samba schema along with the the standard set that are included with openldap.
I noted on the ldap+postfix+courier-imap howto that their setup included a qmail.schema which I don't have but looking at references to this it does not possess a userPassword attribute and the only objectClass it specifies is qmailUser.
So I assume you have a schema that I don't and I would love to get my hands on that :-)
The other part of the equation that you can probably help me with is the actual management of these passwords. How do I use the existing lmpassword or ntpassword that lives in the ldap directory currently. Do I need to use a password tool that builds on the smbpasswd prog that I currently use to fill in a new userPassword field?
Most of the docs I have seen so far seem to refer to having a seperate set of leaves for the courier info but does that mean that the same password cannot be used for in each case. Or am I missing the point.
This is my first foray into ldap so any help you can provide is much appreciated.
Thanks again
Rich
|
|
|
08-18-2003, 12:27 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Sorry I forgot the links but will post them tomorrow. You will need the courier schema and the qmail schema if you intend to use both bits of software.
|
|
|
08-18-2003, 07:20 PM
|
#5
|
Member
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273
Original Poster
Rep:
|
no probs, thanks for the help
not fussed about the qmail part at this stage (no auth on smtp anyway so not an issue presently)
I had looked for a courier schema in the courier souce (stupidly by looking for courier rather than schema) which I have now found and copied a file called authldap.schema but am at a bit of a loss when it comes to populating these new fields.
Do i need to modify smbpasswd?
or am i better using a different method altogether, the ultimate aim is to provide the ability for the user to manage there own password. Haven't got that far.
|
|
|
11-30-2004, 11:17 PM
|
#6
|
LQ Newbie
Registered: Nov 2004
Posts: 1
Rep:
|
a simple solution to this is instead of using NT password change your samba settings to authenticate unix users. convert all accounts to posixaccounts.
change your sysauth file to authenticate to ldap by this any services on your that linux box can authenticate to ldap
|
|
|
All times are GMT -5. The time now is 01:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|