Looking at /var/log/auth.log
May 9 14:57:28 lovelace sshd[12428]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost user=test1
May 9 14:57:28 lovelace sshd[12428]: pam_winbind(sshd:auth): getting password (0x00000388)
May 9 14:57:28 lovelace sshd[12428]: pam_winbind(sshd:auth): pam_get_item returned a password
May 9 14:57:28 lovelace sshd[12428]: pam_winbind(sshd:auth): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_USER_UNKNOWN (10), NTSTAT
May 9 14:57:28 lovelace sshd[12428]: Accepted password for test1 from 127.0.0.1 port 42187 ssh2
May 9 14:57:28 lovelace sshd[12428]: pam_unix(sshd:session): session opened for user test1 by (uid=0)
May 9 14:57:28 lovelace sshd[12428]: pam_mount(mount.c:69): Messages from underlying mount program:
May 9 14:57:28 lovelace sshd[12428]: pam_mount(mount.c:73): Unable to find suitable address.
May 9 14:57:28 lovelace sshd[12428]: pam_mount(pam_mount.c:521): mount of test1 failed
edit - it says here uid=0
but if i try
id test1
I get
lovelace_admin@lovelace:/$ id test1
uid=2001(test1) gid=1901(__USERS__) groups=2001(test group),1901(__USERS__)
syslog just says
May 9 15:06:33 lovelace kernel: [91361.942857] CIFS VFS: Error connecting to socket. Aborting operation
May 9 15:06:33 lovelace kernel: [91361.943375] CIFS VFS: cifs_mount failed w/return code = -111
My /etc/security/pam_mount.conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<!--
See pam_mount.conf(5) for a description.
-->
<pam_mount>
<!-- debug should come before everything else,
since this file is still processed in a single pass
from top-to-bottom -->
<debug enable="1" />
<!-- Volume definitions -->
<volume user="*" fstype="cifs" server="192.168.0.4" path="%(DOMAIN_USER)" mountpoint="/home/%(DOMAIN_USER)" options="sec=ntlm,nodev,nosuid" />
<!-- pam_mount parameters: General tunables -->
<!--
<luserconf name=".pam_mount.conf.xml" />
-->
<!-- Note that commenting out mntoptions will give you the defaults.
You will need to explicitly initialize it with the empty string
to reset the defaults to nothing. -->
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />
<logout wait="0" hup="0" term="0" kill="0" />
<!-- pam_mount parameters: Volume-related -->
<mkmountpoint enable="1" remove="true" />
</pam_mount>