James Holmes
2009-Feb-13 00:39 UTC
[Samba] passwd program error causes misleading windows error message
I have samba setup to use an external password change command using: [global] ... unix password sync = Yes ldap password sync = No passwd program = /path/to/smbldap-passwd -u %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n I use the Idealx smbldap-passwd command to update my LDAP database and everything works fine. I decided to modify the smbldap-passwd script to check for bad passwords. I used CPAN's Data::Password module to do this. However I have one issue with this, if the user enters a bad password I have the script return an exit code of 10 (because that's what the Idealx script does in other places to indicate an error) but when the end user changes their windows password with CTRL-ALT-DELETE -> Change Password it works fine if the password validates okay, but if it fails validation windows returns with a very misleading "you do not have permission to change your password". I did some experimentation to see if changing the exit code in the smbldap-passwd script had any effect, but it doesn't seem to. Is there some way to get windows to return a more reasonable error message when this script fails? Or does someone else have a better way of accomplishing this same goal? -- James Holmes RTDS Technologies Inc. (204) 989-9706
Hi I have a Samba 3.2.7 acting as a PDC for files and printers sharing. All the print configuration is ok and network printers shared by Samba and managed by CUPS are working. Except that if I put a printer name longer than 15 characters in CUPS , it is not seen at all in samba . With less that 15 chars, it is ok, but since this is also the name that appears as the share , it could not be very practical for endusers . Is this 15 chars limit a normal behavior ? Is there a way to bypass it ? Thanks in advance Regards Henri
Hi , Does anyone observe this 15 chars limitation between CUPS and Samba ? Thanks> -----Message d'origine----- > De : HB [mailto:ciradhb.forward@laposte.net] > Envoy? : vendredi 13 f?vrier 2009 10:17 > ? : 'samba@lists.samba.org' > Objet : Long printer name in CUPS not appear in Samba > > Hi > > I have a Samba 3.2.7 acting as a PDC for files and printers sharing. > All the print configuration is ok and network printers shared > by Samba and managed by CUPS are working. > Except that if I put a printer name longer than 15 characters > in CUPS , it is not seen at all in samba . With less that 15 > chars, it is ok, but since this is also the name that appears > as the share , it could not be very practical for endusers . > > Is this 15 chars limit a normal behavior ? Is there a way to > bypass it ? > > Thanks in advance > > Regards > > Henri