Discussion:
[Samba] users and smbpasswd
Thomas Dewar
2003-12-01 19:06:35 UTC
Permalink
Hi all.

I am trying to let users change their passwords from the swap webpage.
But in the password interface when a user wants to change his password
I get the following error :
"machine 127.0.0.1 rejected the session setup. Error was : Not listening for
calling name."

OS: Debian 3.0
Samba v: 2.2.3

I have no problems changing the smb passwords as root, but when I login as a
regular user I get the same error.

Any idea?
Thomas
Thomas Dewar
2003-12-01 19:06:37 UTC
Permalink
Post by Thomas Dewar
Hi all.
I am trying to let users change their passwords from the swap webpage.
But in the password interface when a user wants to change his password
"machine 127.0.0.1 rejected the session setup. Error was : Not listening for
calling name."
OS: Debian 3.0
Samba v: 2.2.3
I have no problems changing the smb passwords as root, but when I login as a
regular user I get the same error.
Any idea?
Thomas
Sorry about all the fuss... my mistake so ill mend it...
I had just forgotten to put localhost in my host allows section... silly
me :-[
hosts allow = 127.0.0.1

thanx anyway
Thomas Dewar
2003-12-01 19:06:37 UTC
Permalink
Post by Thomas Dewar
Post by Thomas Dewar
Hi all.
I am trying to let users change their passwords from the swap
webpage. But in the password interface when a user wants to change
"machine 127.0.0.1 rejected the session setup. Error was : Not listening for
calling name."
OS: Debian 3.0
Samba v: 2.2.3
I have no problems changing the smb passwords as root, but when I login as a
regular user I get the same error.
Any idea?
Thomas
Sorry about all the fuss... my mistake so ill mend it...
I had just forgotten to put localhost in my host allows section...
silly me :-[
hosts allow = 127.0.0.1
thanx anyway
Hello again, after having solved the previous message i am now
encountering this new one :
When i want to change a user password being connected as this user i get
the following error :
***@ldap:~$ smbpasswd -r ldap -U test
Old SMB password:
New SMB password:
Retype new SMB password:
machine ldap rejected the password change: Error was : RAP86: The
specified password is invalid.
Failed to change password for test

But when I am root i am allowed to change the password :
ldap:~# smbpasswd -U test
New SMB password:
Retype new SMB password:
Password changed for user test.

Any piece of advice??? (unless i find out myself... ;-) )

thanx

Thomas
James Kosin
2003-12-01 19:06:40 UTC
Permalink
Dear Thomas Dewar,

Only root can use the '-U' parameter. Try changing it without the '-U'
option and it should work.

James Kosin

Date: Tue, 05 Aug 2003 12:35:52 +0200
From: Thomas Dewar <***@infobi.com>
Subject: Re: [Samba] users and smbpasswd
To: Thomas Dewar <***@infobi.com>
Cc: ***@lists.samba.org
Message-ID: <***@infobi.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thomas Dewar wrote:

<< snip >>
Hello again, after having solved the previous message i am now
encountering this new one :
When i want to change a user password being connected as this user i get
the following error :
***@ldap:~$ smbpasswd -r ldap -U test
Old SMB password:
New SMB password:
Retype new SMB password:
machine ldap rejected the password change: Error was : RAP86: The
specified password is invalid.
Failed to change password for test

But when I am root i am allowed to change the password :
ldap:~# smbpasswd -U test
New SMB password:
Retype new SMB password:
Password changed for user test.

Any piece of advice??? (unless i find out myself... ;-) )

thanx

Thomas



----
James Kosin <***@intcomgrp.com>

International Communications Group, Inc.
200 Enterprise Drive
Newport News, VA 23603-1300
-- United States of America --

Voice: +1 (757) 947-1030 x122
Fax: +1 (757) 947-1035

----
"Walking on water and developing software to specification
are easy as long as both are frozen" - Edward V. Berard.
Thomas Dewar
2003-12-01 19:06:40 UTC
Permalink
Post by James Kosin
Dear Thomas Dewar,
Only root can use the '-U' parameter. Try changing it without the '-U'
option and it should work.
James Kosin
No luck il still gives me the same stuff :

***@ldap:/etc/samba$ smbpasswd -r ldap
Old SMB password:
New SMB password:
Retype new SMB password:
machine ldap rejected the password change: Error was : RAP86: The
specified password is invalid.
Failed to change password for test

Something that I have also noticed is that in my smb.conf : when I put
unix password sync = no in the following password section :
;password sync
passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
unix password sync = no
It seems to work just fine, but when I put unix password sync = yes, I
encounter the RAP86 problem. According to me, my password program
(smbldap-passwd.pl from idealx) can't manage to write both samba and
unix passwords at the same time.

still in the need of help, but nevertheless thanking James Kosin for his
advice

thomas

Loading...