Hi all, I`ve successfully configured samba as PDC using LDAP. All is working very fine, but when the user password expires and the new password that the user typed does not meet the complexity check made by "check password script", I need to give him a custom change password message (based on my own criterion). "check password script" cannot do more than return status 0 or != 0 to tell samba about check result. Would be nice if this could return the custom error message to Samba, so it could tell the user properly. Is there some way to customize this message? Thank you, Tom Lobato
Sorry, forgot something: I`m running Ubuntu 10.04 and Samba 3.4.7~dfsg-1ubuntu3.5. On 24-04-2011 13:26, Tom Lobato wrote:> Hi all, > I`ve successfully configured samba as PDC using LDAP. All is working > very fine, but when the user password expires and the new password that > the user typed does not meet the complexity check made by "check > password script", I need to give him a custom change password message > (based on my own criterion). > "check password script" cannot do more than return status 0 or != 0 > to tell samba about check result. Would be nice if this could return the > custom error message to Samba, so it could tell the user properly. > > Is there some way to customize this message? > > > > Thank you, > Tom Lobato
From: Tom Lobato <tomlobato at gmail.com> Date: Sun, 24 Apr 2011 13:35:22 -0300> On 24-04-2011 13:26, Tom Lobato wrote:(snip)> > "check password script" cannot do more than return status 0 or != 0 > > to tell samba about check result. Would be nice if this could return the > > custom error message to Samba, so it could tell the user properly. > > > > Is there some way to customize this message?No, Samba return only a status code such as NT_STATUS_PASSWORD_RESTRICTION or DOMAIN_PASSWORD_COMPLEX ... The error message is choosen by the client based on received status code, so you cannnot customize it. --- TAKAHASHI Motonobu <monyo at samba.gr.jp>