# Winbind / PAM insufficient restrictions

**URL:** <https://forums.suse.com/t/winbind-pam-insufficient-restrictions/27235>\
**Category:** SLES Configure-Administer\
**Created:** [July 14, 2015, 11:58am UTC](https://forums.suse.com/t/winbind-pam-insufficient-restrictions/27235 "2015-07-14T11:58:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfolkmann](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sfolkmann](https://forums.suse.com/u/sfolkmann)\
**Post date:** [July 14, 2015, 11:58am UTC](https://forums.suse.com/t/winbind-pam-insufficient-restrictions/27235/1 "2015-07-14T11:58:16Z")

</div>

Hey

I have been trying to get my head around this for a while, but it seems like I am overseeing something.

We started to configure this on SLES 11 SP3, and have it mitigated to SLES 12 as well.

What I am seeing is that any valid AD member is allowed to logon to the servers, there are no restrictions.  
When we came up with this configuration I am sure it worked, but I might not remember correctly, or have tested it thoroughly enough.

Here is the output of my PAM files:

/etc/nsswitch.conf

# 2014 - Configuration file modified for AD Authentication

passwd: compat winbind  
group: compat winbind  
shadow: compat

hosts: files dns  
networks: files dns

services: files  
protocols: files  
rpc: files  
ethers: files  
netmasks: files  
netgroup: files nis  
publickey: files

bootparams: files  
automount: files nis  
aliases: files

common-account

#%PAM-1.0

# 2014 - Configuration file modified for AD Authentication

account requisite pam\_unix2.so  
account sufficient pam\_localuser.so  
account required pam\_winbind.so use\_first\_pass

common-auth

#%PAM-1.0

# 2014 - Configuration file modified for AD Authentication

auth required pam\_env.so  
auth sufficient pam\_unix2.so  
auth required pam\_winbind.so use\_first\_pass  
account [default=2 success=ignore] pam\_succeed\_if.so quiet uid \>= 10000  
account [default=ignore success=1] pam\_succeed\_if.so user ingroup DOMAIN\dlg\_delegate\_servers\_standard\_admin\_prod  
account [default=bad success=ignore] pam\_succeed\_if.so user ingroup DOMAIN\g1.servers\_lcladmin.prod\_standard\_HOSTNAME

common-password

#%PAM-1.0

# 2014 - Configuration file modified for AD Authentication

password sufficient pam\_winbind.so  
password requisite pam\_pwcheck.so nullok cracklib  
password required pam\_unix2.so use\_authtok nullok

common-session:

#%PAM-1.0

# 2014 - Configuration file modified for AD Authentication

session optional pam\_mkhomedir.so  
session required pam\_limits.so  
session required pam\_unix2.so  
session required pam\_winbind.so  
session optional pam\_umask.so

Any comments would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [July 20, 2015, 7:30am UTC](https://forums.suse.com/t/winbind-pam-insufficient-restrictions/27235/2 "2015-07-20T07:30:23Z")

</div>

sfolkmann,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
