ensure that objectguid or guid really return binary data before converting it
I am unable to login to owncloud using certain ldap usernames that contain a period. I get: {"app":"core","message":"Login failed: user 'some.username' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-04-23T00:26:24+00:00"}
updating this to say it's not all ldap users with periods in their names. but a good number of them fail to login and do not even show up in the user list. however, when I look at the owncloud ldap configuration the user filter shows 61 users found which includes all of the users with periods in their names.
another update to say I figured out the cause of my issue. the problem users were not in the sqlite3 owncloud.db for oc_ldap_user_mapping & oc_group_user. not sure why these users were not added into there by owncloud automatically though so not closing this just yet. hopefully @blizzz or someone can shed some light.
@blizzz
do they have the configured display name attribute set?
assuming you mean cn in ldap, yes
Not necessarily, I mean the attribute defined in User Display Name Field: (http://doc.owncloud.org/server/6.0/admin_manual/configuration/auth_ldap.html#directory-settings)
Yes, that's the one we have set. All users have a cn defined in ldap
Interesting. Anything in the ownCloud log file? What is your user filter? You said you use an sqlite database – is this for evaluation only? For couple more users we strongly recommend to use MySQL or Postgres.
the only thing in the log that looks interesting/related was this: {"app":"PHP","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at /var
/www/owncloud/apps/user_ldap/lib/ldap.php#141","level":3,"time":"2014-04-23T01:44:50+00:00"}
This started out as for evaluation, but quickly became popular so we have more users trying to use it now. Is there a procedure for converting form sqlite to MySQL that won't break all our existing users and their files?
EDIT: user filter is inetOrgPerson
A command line tool for migration is in the working: https://github.com/owncloud/core/pull/6457
Could you find out whether the issues exists with the upcoming 6.0.3? It's an RC yet so not recommended for production usage. http://mailman.owncloud.org/pipermail/testpilots/2014-April/000132.html
Are you still seeing this in OC 7.0.3 ?
Since discovering the cause of this issue being the missing entries in the sqlite database, I have taken to inserting rows manually when new users are created in LDAP. I'm not yet running 7.0.3, but would want to know if the expected behavior in that release is the same? Once I upgrade (and afterwards convert from sqlite to mysql), will I still be required to insert rows manually into my OC database when new users are added to LDAP?
@fleish did you upgrate to 7 and swtich to MySQL?
@blizz I did upgrade using a funky path, details here: https://github.com/owncloud/core/issues/12801#issuecomment-85255342
I assume I still have to manually add new LDAP users to the mysql database which is what I've been doing. If that's correct & expected we can probably close this.
Manually adding rows to the database is never expected, actually.
@fleish does it work better with mysql now?
@blizzz I haven't had any complaints since moving to mysql. we do still have to manually insert a row into the db for each new LDAP user. It would be nice if OC automatically checked the LDAP server for new users periodically IMO, but we're used to doing it now so it's not a big burden.
This is what is supposed to do. Just yesterday I tried again with both periods and commas in the DN and it worked fine. However I also have another report who has troubles.
Do run it against OpenLDAP, AD or another server?
Also, could you paste your LDAP configuration?
Please remove me from the CC line. Brett
On Wednesday, June 17, 2015 5:34 AM, blizzz <[email protected]> wrote:
Also, could you paste your LDAP configuration? — Reply to this email directly or view it on GitHub.
@blizzz are you saying OC is supposed to sync with LDAP or are you referring to periods in usernames? for clarity, the periods in usernames issue hasn't been observed in a long time now. I think it was probably user error being masked as something else.
We are using OpenLDAP. Configuration below: +------------------------------+---------------------------------------------+ | Configuration | | +------------------------------+---------------------------------------------+ | hasMemberOfFilterSupport | | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | dc=domain,dc=org | | ldapBaseGroups | dc=domain,dc=org | | ldapBaseUsers | dc=domain,dc=org | | ldapCacheTTL | 5 | | ldapConfigurationActive | 1 | | ldapEmailAttribute | | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | UUID | | ldapExpertUsernameAttr | | | ldapGroupDisplayName | cn | | ldapGroupFilter | (|(cn=owncloud)) | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | memberUid | | ldapHost | ldaps://ldap.domain.org/ | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(|(objectclass=inetOrgPerson))(uid=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 1 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapNoCase | 0 | | ldapOverrideMainServer | 0 | | ldapPagingSize | 500 | | ldapPort | 636 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserDisplayName | cn | | ldapUserFilter | (|(objectclass=inetOrgPerson)) | | ldapUserFilterGroups | | | ldapUserFilterMode | 1 | | ldapUserFilterObjectclass | inetOrgPerson | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | +------------------------------+---------------------------------------------+
@blizz I don't see where you were tagged here for cc, nor do I see a way for me to remove you. You should be able to unsubscribe from notifications by visiting the github thread directly here: https://github.com/owncloud/core/issues/8317
Am on the CC line. Do I need to log into github to unsubscribe? Please know that I have never subscribed to any of these hundreds of messages that are often filling up my inbox and notifying my cell. Brett
fleishToowncloud/coreCCblizzToday at 10:37 AM@blizzz are you saying OC is supposed to sync with LDAP or are you referring to periods in usernames? for clarity, the periods in usernames issue hasn't been observed in a long time now. I think it was probably user error being masked as something else.We are using OpenLDAP. Configuration below: +------------------------------+---------------------------------------------+
On Wednesday, June 17, 2015 10:37 AM, fleish <[email protected]> wrote:
@blizzz are you saying OC is supposed to sync with LDAP or are you referring to periods in usernames? for clarity, the periods in usernames issue hasn't been observed in a long time now. I think it was probably user error being masked as something else.We are using OpenLDAP. Configuration below: +------------------------------+---------------------------------------------+ | Configuration | | +------------------------------+---------------------------------------------+ | hasMemberOfFilterSupport | | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | dc=domain,dc=org | | ldapBaseGroups | dc=domain,dc=org | | ldapBaseUsers | dc=domain,dc=org | | ldapCacheTTL | 5 | | ldapConfigurationActive | 1 | | ldapEmailAttribute | | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | UUID | | ldapExpertUsernameAttr | | | ldapGroupDisplayName | cn | | ldapGroupFilter | (|(cn=owncloud)) | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | memberUid | | ldapHost | ldaps://ldap.domain.org/ | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(|(objectclass=inetOrgPerson))(uid=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 1 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapNoCase | 0 | | ldapOverrideMainServer | 0 | | ldapPagingSize | 500 | | ldapPort | 636 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserDisplayName | cn | | ldapUserFilter | (|(objectclass=inetOrgPerson)) | | ldapUserFilterGroups | | | ldapUserFilterMode | 1 | | ldapUserFilterObjectclass | inetOrgPerson | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | +------------------------------+---------------------------------------------+@blizz I don't see where you were tagged here for cc, nor do I see a way for me to remove you. You should be able to unsubscribe from notifications by visiting the github thread directly here: #8317— Reply to this email directly or view it on GitHub.
@blizz
