In 0.7x version, if the Active Directory information is configured to connect to a server, then ssh client fail to connect. When browsing logs, we can see
Nov 16 10:38:55 freenas kernel: pid 5704 (sshd), uid 0: exited on signal 11
Nov 16 10:38:43 freenas nss_wins[5527]: lp_int(): value is NULL or empty!
Nov 16 10:38:43 freenas nss_wins[5527]: [2009/11/16 10:38:43, 0] param/loadparm.c:lp_int(2251)
Nov 16 10:38:43 freenas nss_wins[5527]: lp_bool(): value is NULL or empty!
Nov 16 10:38:43 freenas nss_wins[5527]: [2009/11/16 10:38:43, 0] param/loadparm.c:lp_bool(2280)
Nov 16 10:38:32 freenas sshd[5706]: pam_winbind(sshd): PAM_ESTABLISH_CRED not implemented
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): PAM_ESTABLISH_CRED not implemented
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' granted access
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' OK
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' granted access
in SSH :
Nov 16 10:38:32 freenas sshd[5706]: pam_winbind(sshd): [pamh: 0x0x801214240] LEAVE: pam_sm_setcred returning 0
Nov 16 10:38:32 freenas sshd[5706]: pam_winbind(sshd): PAM_ESTABLISH_CRED not implemented
Nov 16 10:38:32 freenas sshd[5706]: pam_winbind(sshd): [pamh: 0x0x801214240] ENTER: pam_sm_setcred (flags: 0x0001)
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): [pamh: 0x0x801214240] LEAVE: pam_sm_setcred returning 0
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): PAM_ESTABLISH_CRED not implemented
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): [pamh: 0x0x801214240] ENTER: pam_sm_setcred (flags: 0x0001)
Nov 16 10:38:32 freenas sshd[5704]: Accepted password for slp from 10.2.2.2 port 35358 ssh2
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' granted access
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' OK
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): [pamh: 0x0x801214240] LEAVE: pam_sm_authenticate returning 0
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): Returned user was 'slp'
Nov 16 10:38:32 freenas sshd[5704]: pam_winbind(sshd): user 'slp' granted access
Nov 16 10:38:31 freenas sshd[5704]: pam_winbind(sshd): Verify user 'slp'
Nov 16 10:38:31 freenas sshd[5704]: pam_winbind(sshd): getting password (0x00000009)
Nov 16 10:38:31 freenas sshd[5704]: pam_winbind(sshd): [pamh: 0x0x801214240] ENTER: pam_sm_authenticate (flags: 0x0001)
Nov 16 10:38:27 freenas sshd[5704]: SSH: Server;Ltype: Version;Remote: 10.2.2.2-35358;Protocol: 2.0;Client: OpenSSH_4.3
Disabling the Active Directory restore the SSHD functionnality agin, and connecting with local users are good
This is evident in 7.0RC1 and 7.0. In FreeNAS 0.69 (stable) the same configuration is working fine without or with Active Directory : connecting with AD users is OK
Thanks for your support !!!
I am having the same issue as described in bug tracker ID 2821715:
https://sourceforge.net/tracker/index.php?func=detail&aid=2821715&group_id=151951&atid=782616
Can somebody please have a look into this and come up with a fix or workaround.