Couldn't you just change the validation in app/models/user.rb that validates 
the length of the login to be between 3 and 40 characters to allow 2 to 40 
instead? That is what we have done here...

//Peter

From: gitorious@googlegroups.com [mailto:gitorious@googlegroups.com] On Behalf 
Of Marius Mårnes Mathiesen
Sent: den 19 september 2012 10:31
To: gitorious@googlegroups.com
Subject: Re: [gitorious] LDAP authentication with short user names

On Mon, Sep 17, 2012 at 9:16 AM, Andreas Fischer 
<make.fisc...@googlemail.com<mailto:make.fisc...@googlemail.com>> wrote:
Hi all,

we finally have successfully setup a gitorious server with LDAP integration. It 
all works well if the user name is longer than 2 characters.

Unfortunately most of our LDAP login names are the initials of the users with 
only 2 characters (like 'af').
Is there a way to enable short user names in gitorious?

Andreas,
Would it be possible to use another LDAP attribute which resolves to the 
username? If not, the best thing to do would be to have conditional validation 
rules for the username and allow the configuration of this requirement in a 
configuration file, or to add a custom initializer which overrides the 
validations for the username.

Cheers,
- Marius
--
To post to this group, send email to 
gitorious@googlegroups.com<mailto:gitorious@googlegroups.com>
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com<mailto:gitorious+unsubscr...@googlegroups.com>

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

Reply via email to