[Samba] Samba 3.0 & 2003 Active Directory Native Mode

Daniel Magaña Molina dan666 at gnovus.com
Sat Mar 27 00:16:42 GMT 2004

First i must say that i use SuSE 9.0 so i download the rpm's for SuSE


and i got a GUI 

then i put this on my smb.conf

winbind separator = +
winbind  cache time = 10
winbind uid = 10000-20000
winbind gid = 10000-20000
template homedir = /home/winnt/%D/%U
template shell = /bin/bash
workgroup = THO
security = domain
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
encrypt passwords = yes
add user script = /usr/sbin/useradd -d /home/winnt/%D/%U -s /bin/false -M %U
#<------end globals---->

then you havee to start your samba server

rcsmb start

and then start the winbind server

and the you just have to join the domain

net rpc join -U Administrator%password

now you can try to reed the user list from the win server

wbinfo -u

or the group list

wbinfo -g

if evreriting goes ok so far you can import the users from the server

getent passwd

and the groups 

getent group

so far you already got the users an groups list from the win server, now you 
have to create the service in this case i will put the ssh daemon to validate 
users the file /etc/pam.d/sshd shuld look like this

auth     sufficient     /lib/security/pam_winbind.so
account  sufficient     /lib/security/pam_winbind.so
password sufficient     /lib/security/pam_winbind.so
session  sufficient     /lib/security/pam_winbind.so
session  required       pam_unix2.so    none # trace or debug
session  required       pam_limits.so
# Enable the following line to get resmgr support for
# ssh sessions (see /usr/share/doc/packages/resmgr/README.SuSE)
#session  optional      pam_resmgr.so fake_ttyname

and thast is all, if you need more inf. just let me know

On Friday 26 March 2004 08:22, David Morse wrote:
> Does Samba 3.0.2a release integrate with Windows Active Directory
> running in 2003 Native Mode?
> The situation is that two corporate departments are joining their
> network infrastructure.  One department runs several Samba 2.2 servers
> and the other is a 2003 Native Mode Active Directory.  I understand that
> if you upgrade to Samba 3.0 this supports Windows 2000 AD, but it is
> unclear to me if Samba will integrate seamlessly with 2003 Native Mode
> AD environment.  I'm looking for a straight forward non biased, no BS
> answer.  If it works cool, I'm not afraid of the overall work involved.
> Any help would be greatly appreciated.
> David Morse
> Network Administrator & Purchaser
> (703) 904-3132
> (571) 214-7098
> 13454 Sunrise Valley Drive
> Suite 400
> Herndon,Va 20171

Ing. Daniel Magaña Molina
Gnovus Networks & Software
dan666 at gnovus.com
Merida, Yuc.

More information about the samba mailing list