Start a new topic

Plugin: CrushLDAPGroup local home folder name upper and lower case mixed

taggart @ Mon Aug 25 03:31:05 EEST 2014
Version is CrushFTP 7.1 Build 90 on CentOS 6.5 Linux .
I'm using the plugin CrushLDAPGroup 4.3.5 together with ActiveDirectory GC Servers.
There I have the follwoing issue:

Option "Create HomeDirectory folder if it doesn't exists." is disabled
Option "Use local Folder if LDAP's HomeDirsctory not found" is enabled
Option "Append username to path" is enabled
Option "Create folder with username" is enabled

It seems, the Name of the Home Folder which will be created, is directly derived from the username, which the user typed into the Login Box. If the user once types in “Eric Schmidt” and in a later session “eric schmidt”, two home folders e.g.: "/home/Eric Schmidt" and "/home/eric schmidt” will be created.
The LDAP authentication itself is not case sensitive, but the home folder name….
Is there any solution to avoid this ?

spinkb @ Mon Aug 25 05:43:16 EEST 2014
In the prefs.xml file, set the "lowercase_usernames" to be true.

From now on, usernames will be made lowercase...but you need to adjust the existing username folders to be lowercase as well.

Thanks,
Ben
taggart @ Mon Aug 25 05:55:10 EEST 2014
Hi Ben,

I forgot to mention, that I alredy did this:

]# grep lowercase /var/opt/CrushFTP7_PC/*.XML
true


It seems it does not have any effect onto the LDAP plugin.

Best Regards,
Volker.
spinkb @ Mon Aug 25 05:58:58 EEST 2014
OK, then try setting that to false, and set this to true.

username_uppercase

Thanks,
Ben
taggart @ Mon Aug 25 06:38:07 EEST 2014
o.k., this works.
Home folders are now created with upper case.
taggart @ Mon Aug 25 07:02:24 EEST 2014
Is it also possible to get this working with lowercase names too?
Because this would fit better in my UNIX environment.
spinkb @ Mon Aug 25 14:14:33 EEST 2014
Click update now, and the new build will work with either, but not both enabled.

Thanks,
Ben
taggart @ Tue Aug 26 07:26:42 EEST 2014
Yes it works now.

Thanks for the quick solution of the issue.

Best Regards,
Volker.
Login to post a comment