diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-25 20:34:58 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-25 20:35:30 +0200 |
commit | cbba469990a96d78d78d1426cfffbb7e36b5d6ac (patch) | |
tree | 7dd6d7927743143b03aa5bfa123473a6ac1d76ba /apps/user_ldap/appinfo | |
parent | 0933b5e7abf894620615abb3c0dbf9bb841c80fd (diff) | |
download | nextcloud-server-cbba469990a96d78d78d1426cfffbb7e36b5d6ac.tar.gz nextcloud-server-cbba469990a96d78d78d1426cfffbb7e36b5d6ac.zip |
LDAP rewrite, use unique LDAP user and group identifiers on LDAP side as well as fancy (unqiue as far as users a know from LDAP) names on the ownCloud side. It's done via mapping of owncloud names and LDAP identifiers.
some performance enhancements: faster searching for users and groups in their specific subtrees. Reading instead of searching were possible.
thanks for the feedback of Kevin van Kuik
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r-- | apps/user_ldap/appinfo/database.xml | 95 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/version | 2 |
2 files changed, 96 insertions, 1 deletions
diff --git a/apps/user_ldap/appinfo/database.xml b/apps/user_ldap/appinfo/database.xml new file mode 100644 index 00000000000..74c56fcf743 --- /dev/null +++ b/apps/user_ldap/appinfo/database.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<database> + + <name>*dbname*</name> + <create>true</create> + <overwrite>false</overwrite> + <charset>utf8</charset> + + <table> + + <name>*dbprefix*ldap_user_mapping</name> + + <declaration> + + <field> + <name>ldap_dn</name> + <type>text</type> + <notnull>true</notnull> + <length>255</length> + <default></default> + </field> + + <field> + <name>owncloud_name</name> + <type>text</type> + <notnull>true</notnull> + <length>255</length> + <default></default> + </field> + + <index> + <name>ldap_dn</name> + <unique>true</unique> + <field> + <name>ldap_dn</name> + </field> + </index> + + <index> + <name>owncloud_name</name> + <unique>true</unique> + <field> + <name>owncloud_name</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + + <table> + + <name>*dbprefix*ldap_group_mapping</name> + + <declaration> + + <field> + <name>ldap_dn</name> + <type>text</type> + <notnull>true</notnull> + <length>255</length> + <default></default> + </field> + + <field> + <name>owncloud_name</name> + <type>text</type> + <notnull>true</notnull> + <length>255</length> + <default></default> + </field> + + <index> + <name>ldap_dn</name> + <unique>true</unique> + <field> + <name>ldap_dn</name> + </field> + </index> + + <index> + <name>owncloud_name</name> + <unique>true</unique> + <field> + <name>owncloud_name</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + +</database>
\ No newline at end of file diff --git a/apps/user_ldap/appinfo/version b/apps/user_ldap/appinfo/version index ceab6e11ece..a0d78bd347e 100644 --- a/apps/user_ldap/appinfo/version +++ b/apps/user_ldap/appinfo/version @@ -1 +1 @@ -0.1
\ No newline at end of file +0.1.90
\ No newline at end of file |