git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
19411c9
)
setup: Fix phpldapadmin configuration for version 1.2.x
author
Amitay Isaacs
<amitay@gmail.com>
Wed, 7 Dec 2011 01:26:46 +0000
(12:26 +1100)
committer
Amitay Isaacs
<amitay@gmail.com>
Wed, 14 Dec 2011 04:57:32 +0000
(15:57 +1100)
source4/setup/phpldapadmin-config.php
patch
|
blob
|
history
diff --git
a/source4/setup/phpldapadmin-config.php
b/source4/setup/phpldapadmin-config.php
index 5a4c2d7a6bea698af80c12b8e8ec545686a5434d..8a2f2153edb0266d51e670d3d1e9dd6b41b19af1 100644
(file)
--- a/
source4/setup/phpldapadmin-config.php
+++ b/
source4/setup/phpldapadmin-config.php
@@
-1,28
+1,20
@@
<?php
/**
* The phpLDAPadmin config file, customised for use with Samba4
<?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
.
+ *
Use config.php.example to create config.php, if you don't have one.
+ *
+ *
Append this file to config.php
.
*/
*/
-/*********************************************/
-/* 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;
+/* Create a new LDAP server for SAMBA4 */
+$servers->newServer('ldap_pla');
/* A convenient name that will appear in the tree viewer and throughout
phpLDAPadmin to identify this LDAP server to users. */
/* 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');
+$servers->setValue('server','name','Samba4 LDAP Server');
+$servers->setValue('server','host','${S4_LDAPI_URI}');
+$servers->setValue('login','auth_type','session');
+$servers->setValue('login','attr','dn');
+
?>
?>