Enhancement #2341

Enhancement #2669: Upgrade to ownCloud 7

Automatic ownCloud LDAP configuration

Added by Davide Principi over 7 years ago. Updated almost 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-owncloud
Target version:~FUTURE
Resolution:WORKSFORME NEEDINFO:No

Description

It would save some trouble to the admin if we configure the LDAP backend automatically.

Let's try to inject the requested values directly into the owncloud MySQL DB. These seem to be the related values:

mysql> select configkey,configvalue from appconfig where appid='user_ldap';
+-----------------------------------+-------------------------------------------+
| configkey                         | configvalue                               |
+-----------------------------------+-------------------------------------------+
| bgjUpdateGroupsLastRun            | 1383932334                                |
| enabled                           | yes                                       |
| home_folder_naming_rule           |                                           |
| installed_version                 | 0.4.0                                     |
| ldap_agent_password               | TmV0aGVzaXMsMTIzNA==                      |
| ldap_attributes_for_group_search  |                                           |
| ldap_attributes_for_user_search   |                                           |
| ldap_backup_host                  |                                           |
| ldap_backup_port                  | 389                                       |
| ldap_base                         | dc=directory,dc=nh                        |
| ldap_base_groups                  | dc=directory,dc=nh                        |
| ldap_base_users                   | dc=directory,dc=nh                        |
| ldap_cache_ttl                    | 600                                       |
| ldap_configuration_active         | 1                                         |
| ldap_display_name                 | cn                                        |
| ldap_dn                           | uid=owncloud,ou=People,dc=directory,dc=nh |
| ldap_email_attr                   |                                           |
| ldap_expert_username_attr         |                                           |
| ldap_expert_uuid_attr             |                                           |
| ldap_group_display_name           | cn                                        |
| ldap_group_filter                 | (&(objectClass=posixGroup)(memberUid=*))  |
| ldap_group_member_assoc_attribute | uniqueMember                              |
| ldap_host                         | localhost:389                             |
| ldap_login_filter                 | uid=%uid                                  |
| ldap_nocase                       |                                           |
| ldap_override_main_server         |                                           |
| ldap_port                         | 389                                       |
| ldap_quota_attr                   |                                           |
| ldap_quota_def                    |                                           |
| ldap_tls                          | 1                                         |
| ldap_turn_off_cert_check          |                                           |
| ldap_userlist_filter              | (&(objectClass=person)(givenName=*))      |
| ldap_uuid_attribute               | entryuuid                                 |
| types                             | authentication                            |
+-----------------------------------+-------------------------------------------+


Related issues

Related to NethServer 6 - Feature #2037: ownCloud CLOSED

History

#1 Updated by Davide Principi over 7 years ago

  • Subject changed from Automatic LDAP configuration to Automatic ownCloud LDAP configuration

#2 Updated by Alessio Fattorini almost 7 years ago

  • Parent task set to #2669

#3 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from NEW to CLOSED
  • % Done changed from 0 to 100
  • Resolution set to WORKSFORME

MySQL database can quickly change between releases and the schema is no documented.

The enterprise version has special API for this kind of scenarios, but for now we will support only the free version.

By the way, the package will implement a Dashboard widget showing the Owncloud URL and the password for LDAP.

Also available in: Atom PDF