summaryrefslogtreecommitdiff
path: root/source4/setup/phpldapadmin-config.php
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-11-10 05:31:26 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:03 +0100
commit716391f10679e82835f42490e1d8a69af2acad82 (patch)
tree367dd0ceef02811d8110fc967970db3edf17a553 /source4/setup/phpldapadmin-config.php
parent529763a9aa192a6785ba878aceeb1683c2510913 (diff)
downloadsamba-716391f10679e82835f42490e1d8a69af2acad82.tar.gz
samba-716391f10679e82835f42490e1d8a69af2acad82.tar.bz2
samba-716391f10679e82835f42490e1d8a69af2acad82.zip
r25921: Now also listen on ldapi by default in the LDAP server
Create a phpLDAPadmin configuration file example to use ldapi to talk to Samba4 Andrew Bartlett (This used to be commit 54f4c8ba6127757fd272bd97e301188eb69977ed)
Diffstat (limited to 'source4/setup/phpldapadmin-config.php')
-rw-r--r--source4/setup/phpldapadmin-config.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/source4/setup/phpldapadmin-config.php b/source4/setup/phpldapadmin-config.php
new file mode 100644
index 0000000000..5a4c2d7a6b
--- /dev/null
+++ b/source4/setup/phpldapadmin-config.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * The phpLDAPadmin config file, customised for use with Samba4
+ * This overrides phpLDAPadmin defaults
+ * that are defined in config_default.php.
+ *
+ * DONT change config_default.php, you changes will be lost by the next release
+ * of PLA. Instead change this file - as it will NOT be replaced by a new
+ * version of phpLDAPadmin.
+ */
+
+/*********************************************/
+/* Useful important configuration overrides */
+/*********************************************/
+
+/* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
+ to a big random string. */
+
+$i=0;
+$ldapservers = new LDAPServers;
+
+/* A convenient name that will appear in the tree viewer and throughout
+ phpLDAPadmin to identify this LDAP server to users. */
+$ldapservers->SetValue($i,'server','name','Samba4 LDAP Server');
+$ldapservers->SetValue($i,'server','host','${S4_LDAPI_URI}');
+$ldapservers->SetValue($i,'server','auth_type','session');
+$ldapservers->SetValue($i,'login','attr','dn');
+?>