Server Management - Systems Insight Manager
1753806 Members
8290 Online
108805 Solutions
New Discussion юеВ

Login to Linux CMS via pam_winbind

 
Sebastian.Koehler
Honored Contributor

Login to Linux CMS via pam_winbind

Is there a way to make Active Directory logins via pam_winbind possible for a HP SIM 5.3 on RHEL5 U2? Usual logins via SSH work fine. I've tried to modify /etc/pam.d/mxpamauthrealm.

When I try to login using "DOMAIN\username" the following error is found in /var/opt/mx/logs/mxdomainmgr.0.log.

Authentication failed for user username - User not known to the underlying authentication module
Username/Password Authentication failed for user: username

Regards,
Sebastian
2 REPLIES 2
Sebastian.Koehler
Honored Contributor

Re: Login to Linux CMS via pam_winbind

Solved the issue. It seems that the Linux CMS login windows removes the DOMAIN\ form DOMAIN\username. So I had to add winbind use default domain = yes to smb.conf. This will cause pam_winbind to "suggest" the default domain.

/etc/samba/smb.conf
[global]
workgroup = DOMAIN
realm = DOMAIN.COM
netbios name = NODENAME
preferred master = no
server string = Samba file and print server
security = ADS
password server = *
encrypt passwords = yes
max log size = 50
printcap name = cups
printing = cups
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
#winbind separator = +
winbind nested groups = yes
winbind offline logon = true
winbind use default domain = yes
template homedir = /
template shell = /bin/bash
#log level = 10

comment = Home Directories
valid users = %S
read only = No
browseable = No

comment = All Printers
browseable = no
printable = yes
guest ok = yes
Sebastian.Koehler
Honored Contributor

Re: Login to Linux CMS via pam_winbind

Add "winbind use default domain = yes" to smb.conf to make pam_winbind to append DOMAIN to username.