Skip to content

Commit

Permalink
update ldap filters in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Oct 27, 2020
1 parent 69e189a commit 8b28fa5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions tests/oc-integration-tests/drone/ldap-users.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ auth_manager = "ldap"
hostname="ldap"
port=636
base_dn="dc=owncloud,dc=com"
userfilter="(&(objectclass=posixAccount)(cn=%s*))"
groupfilter="(&(objectclass=posixGroup)(cn=%s*))"
userfilter="(&(objectclass=posixAccount)(|(uid={{.OpaqueId}})(cn={{.OpaqueId}})))"
findfilter="(&(objectclass=posixAccount)(|(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)))"
attributefilter="(&(objectclass=posixAccount)({{attr}}={{value}}))"
groupfilter="(&(objectclass=posixGroup)(cn={{.OpaqueId}}))"
bind_username="cn=admin,dc=owncloud,dc=com"
bind_password="admin"
idp="http://localhost:18000"
Expand All @@ -32,8 +34,10 @@ driver = "ldap"
hostname="ldap"
port=636
base_dn="dc=owncloud,dc=com"
userfilter="(&(objectclass=posixAccount)(cn=%s*))"
groupfilter="(&(objectclass=posixGroup)(cn=%s*))"
userfilter="(&(objectclass=posixAccount)(|(uid={{.OpaqueId}})(cn={{.OpaqueId}})))"
findfilter="(&(objectclass=posixAccount)(|(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)))"
attributefilter="(&(objectclass=posixAccount)({{attr}}={{value}}))"
groupfilter="(&(objectclass=posixGroup)(cn={{.OpaqueId}}))"
bind_username="cn=admin,dc=owncloud,dc=com"
bind_password="admin"
idp="http://localhost:18000"
Expand Down
12 changes: 8 additions & 4 deletions tests/oc-integration-tests/local/ldap-users.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ auth_manager = "ldap"
hostname="localhost"
port=636
base_dn="dc=owncloud,dc=com"
userfilter="(&(objectclass=posixAccount)(cn=%s*))"
groupfilter="(&(objectclass=posixGroup)(cn=%s*))"
userfilter="(&(objectclass=posixAccount)(|(uid={{.OpaqueId}})(cn={{.OpaqueId}})))"
findfilter="(&(objectclass=posixAccount)(|(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)))"
attributefilter="(&(objectclass=posixAccount)({{attr}}={{value}}))"
groupfilter="(&(objectclass=posixGroup)(cn={{.OpaqueId}}))"
bind_username="cn=admin,dc=owncloud,dc=com"
bind_password="admin"
idp="http://localhost:18000"
Expand All @@ -32,8 +34,10 @@ driver = "ldap"
hostname="localhost"
port=636
base_dn="dc=owncloud,dc=com"
userfilter="(&(objectclass=posixAccount)(cn=%s*))"
groupfilter="(&(objectclass=posixGroup)(cn=%s*))"
userfilter="(&(objectclass=posixAccount)(|(uid={{.OpaqueId}})(cn={{.OpaqueId}})))"
findfilter="(&(objectclass=posixAccount)(|(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)))"
attributefilter="(&(objectclass=posixAccount)({{attr}}={{value}}))"
groupfilter="(&(objectclass=posixGroup)(cn={{.OpaqueId}}))"
bind_username="cn=admin,dc=owncloud,dc=com"
bind_password="admin"
idp="http://localhost:18000"
Expand Down

0 comments on commit 8b28fa5

Please sign in to comment.