[Owncloud] owncloud alpha 1 and LDAP entryUUID

Dirk Kastens dirk.kastens at uni-osnabrueck.de
Thu Mar 7 10:49:48 UTC 2013


Hi,

seems that this was the wrong place. Owncloud still used the UUID for 
the user directory. Meanwhile I have changed line 431 in 
user_ldap/lib/connection.php from

if(!in_array($this->config['ldapUuidAttribute'], array('auto', 
'entryuuid', 'nsuniqueid', 'objectguid'))

to

if(!in_array($this->config['ldapUuidAttribute'], array('uid'))

and line 895 in user_ldap/lib/connection.php from

$testAttributes = array('entryuuid', 'nsuniqueid', 'objectguid');

to

$testAttributes = array('uid');

Now OC only uses the uid for the users and the directories.

>> You can patch it yourself by replacing
>> the line
>> https://github.com/owncloud/core/blob/master/apps/user_ldap/lib/access.php#L317
>>
>>
>> with
>> $intname = $isUser ? $this->sanitizeUsername($this->readAttribute($dn,
>> 'uid')) : $this->sanitizeUsername($ldapname);
>
> Great! I didn't know that this is that simple. I'll give it a try.

Dirk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4827 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130307/9a38683c/attachment.bin>


More information about the Owncloud mailing list