abdulaziz.abajobir at ju.edu.et
2015-Nov-14 16:31 UTC
[Samba] session setup failed: NT_STATUS_LOGON_FAILURE (debian wheezy)
Hello everybody, I am having trouble with samba ldap authentication Here are some of the outputs... root at samba:~# smbclient -L //localhost -U justin Enter justin's password: session setup failed: NT_STATUS_LOGON_FAILURE Log out puts: root at samba:~# tail /var/log/samba/log.smbd [2015/11/14 09:02:16.560186, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) [2015/11/14 09:02:24.718482, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) [2015/11/14 09:02:24.733266, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) [2015/11/14 09:12:57.687424, 0] printing/print_cups.c:110(cups_connect) Unable to connect to CUPS server localhost:631 - Connection refused [2015/11/14 09:12:57.689828, 0] printing/print_cups.c:487(cups_async_callback) failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL [2015/11/14 09:22:16.989088, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) [2015/11/14 09:22:25.971359, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) [2015/11/14 09:22:38.188146, 0] passdb/lookup_sid.c:1684(get_primary_group_sid) root at samba:~# tail /var/log/samba/log.nmbd [2015/11/12 20:47:55, 0] nmbd/nmbd.c:66(terminate) Got SIGTERM: going down... [2015/11/12 20:47:59, 0] nmbd/nmbd.c:861(main) nmbd version 3.6.6 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2015/11/13 08:15:19, 0] nmbd/nmbd.c:66(terminate) Got SIGTERM: going down... [2015/11/13 08:15:23, 0] nmbd/nmbd.c:861(main) nmbd version 3.6.6 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 When i try to create user with smbpasswd and pdbedit i get the following errors: root at samba:~# smbpasswd -a abdiii New SMB password: Retype new SMB password: Use of qw(...) as parentheses is deprecated at /usr/share/perl5/smbldap_tools.pm line 1423, <DATA> line 558. Failed to add entry for user abdiii. Thank you
Rowland Penny
2015-Nov-14 17:04 UTC
[Samba] session setup failed: NT_STATUS_LOGON_FAILURE (debian wheezy)
On 14/11/15 16:31, abdulaziz.abajobir at ju.edu.et wrote:> > Hello everybody, > > I am having trouble with samba ldap authentication > > Here are some of the outputs... > > > root at samba:~# smbclient -L //localhost -U justin > Enter justin's password: > session setup failed: NT_STATUS_LOGON_FAILURE > > > Log out puts: > > root at samba:~# tail /var/log/samba/log.smbd > [2015/11/14 09:02:16.560186, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > [2015/11/14 09:02:24.718482, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > [2015/11/14 09:02:24.733266, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > [2015/11/14 09:12:57.687424, 0] printing/print_cups.c:110(cups_connect) > Unable to connect to CUPS server localhost:631 - Connection refused > [2015/11/14 09:12:57.689828, 0] > printing/print_cups.c:487(cups_async_callback) > failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL > [2015/11/14 09:22:16.989088, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > [2015/11/14 09:22:25.971359, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > [2015/11/14 09:22:38.188146, 0] > passdb/lookup_sid.c:1684(get_primary_group_sid) > > > root at samba:~# tail /var/log/samba/log.nmbd > [2015/11/12 20:47:55, 0] nmbd/nmbd.c:66(terminate) > Got SIGTERM: going down... > [2015/11/12 20:47:59, 0] nmbd/nmbd.c:861(main) > nmbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > [2015/11/13 08:15:19, 0] nmbd/nmbd.c:66(terminate) > Got SIGTERM: going down... > [2015/11/13 08:15:23, 0] nmbd/nmbd.c:861(main) > nmbd version 3.6.6 started. > Copyright Andrew Tridgell and the Samba Team 1992-2011 > > When i try to create user with smbpasswd and pdbedit i get the > following errors: > > root at samba:~# smbpasswd -a abdiii > New SMB password: > Retype new SMB password: > > Use of qw(...) as parentheses is deprecated at > /usr/share/perl5/smbldap_tools.pm line 1423, <DATA> line 558. > Failed to add entry for user abdiii. > > Thank you >It looks like you are trying to create an NT4-style domain using 3.6.6 on Wheezy and you are also using smbldap-tools. Samba 3.6 is no longer maintained but if you must stick with wheezy, you could use backports, this will get you samba 4.1.17 However, your problem is coming from smbldap-tools and this is not part of Samba, it is a third party package. To get a later version of this, will entail upgrading your distro to Jessie. Can I ask why you are trying to create a new NT4-style domain ? you would probably be better off creating a new AD domain. Rowland