Fork me on GitHub

#1 2012-04-18 22:49:50

Erickv
Member
From: Cuba
Registered: 2012-04-18
Posts: 2

Adding a dot in regExp for logging-add users.

Hi all. Hi Lars.
Excellent job!!

I'm new in the forum and testing oneye but want to suggest add a dot in the regExp for logging-adding users.
In some enterprise environments connected to LDAP the user names  are name.lastname and for using:
http://eyeos-apps.org/content/show.php/ … ent=119666
i change ^[-_a-zA-Z0-9]+$   for  ^[-._a-zA-Z0-9]+$
everywhere i found it and works fine.
Best regards to all.

(Sorry if this is not the place to post)
Thanks very much.

Offline

#2 2012-04-19 13:39:59

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Adding a dot in regExp for logging-add users.

Thanks for the info. In revision 7521 I committed a similar LDAP um module and added all required constants to settings.php .

My decision on the dot was: They can be on second or any higher position. That way we can make sure, user folders do not get hidden by accident (by starting with a dot) wink .


Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2012-05-31 16:32:02

Erickv
Member
From: Cuba
Registered: 2012-04-18
Posts: 2

Re: Adding a dot in regExp for logging-add users.

Hi Lars.
Maybe you will like to change the regExp in:
.../apps/eyeControl/events/newuser.eyecode
and maybe in:
.../apps/eyeLogin/event.eyecode
In rev.7521 when the user (name.lastname) is created trough ldap module and i change the permissions to Administrator the system says successfully but the permissions don't change.

Thanks again, best regards.
Erick.

Offline

#4 2012-05-31 19:09:19

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Adding a dot in regExp for logging-add users.

Committed a change at revision 7569.
It simply centers all that checks in one um service function wink ...


Best regards,
Lars Knickrehm

The oneye project.

Offline

Board footer

Powered by FluxBB