Hi Roland, thanks, I think I was able to do what I wanted. I'm just writing my solution to the mailing list, maybe someone else might find it useful in the future: In the file /lib/modules/posixAccount.inc I added two lines: In the function " process_attributes()" I added the following line: $this->attributes['uid'][0] = substr($this->attributes['uid'][0],0,8); (after the line: $this->attributes['uid'][0] = trim($_POST['uid']);)
And in the function "getUserNameSuggestion($attrs)" I added: $format = substr($format,0,8); (right before the line: return $format;) Br, Manuel -----Original Message----- From: Roland Gruber [mailto:[email protected]] Sent: Mittwoch, 03. Juni 2015 20:09 To: [email protected] Subject: Re: [Lam-public] Limit username length Hi Manuel, On 03.06.2015 10:39, SCHARFY Manuel wrote: > thank you for the information. Can you give me a hint where to find that part > in the code to change it? In our case it would fully suffice to just cut the > string in the "User name" field to a length of 8 characters. I guess this is > rather easy to implement for us hardcoded. Of course we have to check this > after every update in the future. please see process_attributes() in lib/modules/posixAccount.inc. > Is it possible to add this as a future feature request? I think this is too specific to be integrated in LAM. -- Best regards Roland LDAP Account Manager http://www.ldap-account-manager.org/ Want more? Get LDAP Account Manager Pro! https://www.ldap-account-manager.org/lamcms/lamPro ------------------------------------------------------------------------------ _______________________________________________ Lam-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lam-public
