[Samba] Samba+Ldap - trying to change password
George Farris
farrisg at mala.bc.ca
Mon Apr 22 13:29:02 GMT 2002
Does your password contain a space character?
I had to modify smbldap-passwd.pl to accept passwords that contained a
space character other wise I got that message.
The line in smbldap-passwd.pl is:
$ret = system "$ldappasswd $dn -s $pass > /dev/null";
replace it with:
$ret = system "$ldappasswd $dn -s \"$pass\" > /dev/null";
On Mon, 2002-04-22 at 12:07, Thomas Klettke wrote:
> >I have been following the howto for samba and ldap from the idealx.org
> >website, but im having trouble changing the password. Unfortunately, I
> >dont know perl good enough to debug this myself. When I run
> >smbldap-passwd.pl testuser, i get the following output.
>
> >root at sideswipe% smbldap-passwd.pl testuser
> >Changing password for testuser
> >New password :
> >Retype new password :
> >Change password of an LDAP user
>
> .
> .
> .
>
> >Can't return outside a subroutine at /usr/local/sbin/smbldap-passwd.pl
> >line 170, <STDIN> chunk 2.
>
> >--
> >Peter Erickson
>
> Peter,
> I've tried to create the same error message, got it when I entered a blank
> password. Is that what you did?
> Another place to check: Did you modify /usr/local/sbin/smbldap_conf.pm to
> match your settings?
>
> I know, it sounds trivial, but these are the first things to look at before
> attempting any further troubleshooting.
>
> Thomas Klettke
> thomask at aesbus.com
> Network Administrator
> Aesbus Knowledge Solutions
> Houston, TX 77069
> "The instructions said to use Windows 98 or better, so I installed RedHat."
>
>
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
==================================================================
George Farris Computer Support Cowichan
farrisg at mala.bc.ca Malaspina University-College
A conclusion is simply the place where you got tired of thinking.
------- Electronic Frontier Foundation http://www.eff.org -------
More information about the samba
mailing list