[Samba]Winbind and RH7.2

Piotr Paszynski Safon at jedynka.com.pl
Tue Jan 29 04:44:04 GMT 2002


Hi,

Ive Samba 2.2.2 installed on RH7.2.
Ive copied all the correct links across and edited my smb.conf file to
include the following:
-----------------------
[global]
winbind separator = +
winbind uid = 20001-30000
winbind gid = 20001-30000
winbind enum users = yes
winbind enum groups = yes
template shell = /bin/bash
template homedir = /home/winnt/%D/%U

workgroup = DWU
server string = Samba GIMLI Server
security = domain
password server = DROMADER
encrypt passwords = yes
wins support = no
wins server = 192.168.10.2
domain logons = no
preferred master = no
local master = no
netbios name = gimli
domain master = no
log file = /var/log/samba/log.%m
max log size = 5000
nt pipe support = yes
log level = 10

[homes]
comment = home
browseable = no
writable = yes
------------------------
In /etc/nsswitch.conf put the following:

passwd:     files winbind nisplus
shadow:     files winbind nisplus
group:      files winbind nisplus

Also adding the following to '/etc/pam.d/system-auth'

auth       sufficient   /lib/security/pam_winbind.so use_first_pass
after the line which reads
auth       sufficient    /lib/security/pam_unix.so likeauth nullok

My '/etc/pam.d/samba'

auth requisite /lib/security/pam_securetty.so
auth requisite pam_nologin.so
auth optional  pam_env.so
auth sufficient     pam_winbind.so
auth sufficient     pam_pwdb.so    shadow nullok use_first_pass
account   sufficient     pam_winbind.so
account   required  pam_pwdb.so    shadow nullok
session required        /lib/security/pam_mkhomedir.so
session   required  pam_pwdb.so    shadow nullok
session   optional  pam_lastlog.so
session   optional  pam_mail.so
session   optional  pam_motd.so
password  required  pam_pwdb.so    shadow nullok
--------------------------------------------------------------------

then I ran:

smbpasswd -j DWU -r DROMADER -U admin
password: password

That got accepted into the domain: joined domain DWU

I then started winbindd and checked the output of 'wbinfo -t'
which ouputed: secret is o.k
I then ran :

wbinfo -u
Error looking up domain users

Also if I run wbinfo -m
It just takes me back to the prompt.

What doing???

--
Piotr Paszyński





More information about the samba mailing list