Re: [Samba] smbldap-useradd question

2007-01-18 Thread Adrian Sender

Hi Jason,

If you are using ldap as your samba backend you do not need to add unix 
users, as it can be resolved through pam;


This is done through the nsswitch.conf file, you might have something like:
passwd: files ldap
shadow: files ldap
group:  files ldap

Which means users are looked up through /etc/passwd, then it will check 
LDAP.


You can veryify that this is working correctly by trying a few thing..

root> getent passwd
root> getent group

This will show you that users in the ldap database are been resolved through 
pam..


Finally you could try root> id username

As everything is resolved through pam, treat LDAP users like normal users 
( I dought you have given them shell access) so you can just configure your 
mail server as per usual, and use the LDAP users.


This is a Samba List, so you may need to try another list or read the docs 
in regards to setting up your mail server and imap client. If you are 
wanting to have users mail box in their home folder you may need to use 
procmail for this.


Cheers,

Adrian Sender.


- Original Message - 
From: "Jason Baker" <[EMAIL PROTECTED]>

To: "samba List" 
Sent: Thursday, January 18, 2007 1:14 AM
Subject: [Samba] smbldap-useradd question


I have Samba 3 setup to work with LDAP and I am using the IdealX tools to 
create new users. If I issue the command /./smbldap-useradd -m -a -c "User 
Name" username/, then my new user is added, but I do not see the user in 
//etc/passwd/ and there is no entry in //var/mail/. Do I need to create a 
Unix account for this user also? They already have a /home directory. If I 
want a mail box for the user, could I just create one manually?

--

*Jason Baker
*/IT Coordinator/


*Glastender Inc.*
5400 North Michigan Road
Saginaw, Michigan 48604 USA
800.748.0423
Phone: 989.752.4275 ext. 228
Fax: 989.752.
www.glastender.com 






--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE [Samba] smbldap-useradd question

2007-01-17 Thread stephane . purnelle
IdealX tools is for manage users in ldap tree, not in passwd.
Normally , the data of users in LDAP contain necessary attribute for unix 
account.
You can use pam_ldap & nss_ldap pour unix auth from LDAP.

For mail box, you must create one manually or modify the smbldap-useradd 
script !

---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467



Jason Baker <[EMAIL PROTECTED]> 
Envoyé par : [EMAIL PROTECTED]
17/01/2007 15:14

A
samba List 
cc

Objet
[Samba] smbldap-useradd question






I have Samba 3 setup to work with LDAP and I am using the IdealX tools 
to create new users. If I issue the command /./smbldap-useradd -m -a -c 
"User Name" username/, then my new user is added, but I do not see the 
user in //etc/passwd/ and there is no entry in //var/mail/. Do I need to 
create a Unix account for this user also? They already have a /home 
directory. If I want a mail box for the user, could I just create one 
manually?
-- 

*Jason Baker
*/IT Coordinator/


*Glastender Inc.*
5400 North Michigan Road
Saginaw, Michigan 48604 USA
800.748.0423
Phone: 989.752.4275 ext. 228
Fax: 989.752.
www.glastender.com 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba