diff -Nur smeserver-phpldapadmin-1.2.3.old/createlinks smeserver-phpldapadmin-1.2.3/createlinks --- smeserver-phpldapadmin-1.2.3.old/createlinks 2013-11-05 01:53:57.000000000 -0500 +++ smeserver-phpldapadmin-1.2.3/createlinks 2013-11-05 01:59:44.000000000 -0500 @@ -12,4 +12,4 @@ { templates2events("/etc/phpldapadmin/config.php", $event) } - +safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phpldapadmin/config.php/template-begin"); diff -Nur smeserver-phpldapadmin-1.2.3.old/root/etc/e-smith/templates/etc/phpldapadmin/config.php/01header smeserver-phpldapadmin-1.2.3/root/etc/e-smith/templates/etc/phpldapadmin/config.php/01header --- smeserver-phpldapadmin-1.2.3.old/root/etc/e-smith/templates/etc/phpldapadmin/config.php/01header 2013-11-05 01:53:57.000000000 -0500 +++ smeserver-phpldapadmin-1.2.3/root/etc/e-smith/templates/etc/phpldapadmin/config.php/01header 2013-11-05 02:02:12.000000000 -0500 @@ -1,4 +1,4 @@ -custom->appearance['timezone'] = null; # $config->custom->appearance['timezone'] = 'Australia/Melbourne'; - meaning that users will not be presented a form for modifying those +/* meaning that users will not be presented a form for modifying those attributes, and they will not be allowed to be modified on the "back-end" either. You may configure this list here: NOTE: The user must be able to read the readonly_attrs_exempt entry to be diff -Nur smeserver-phpldapadmin-1.2.3.old/root/etc/e-smith/templates/etc/phpldapadmin/config.php/05LdapServer smeserver-phpldapadmin-1.2.3/root/etc/e-smith/templates/etc/phpldapadmin/config.php/05LdapServer --- smeserver-phpldapadmin-1.2.3.old/root/etc/e-smith/templates/etc/phpldapadmin/config.php/05LdapServer 2013-11-05 01:53:57.000000000 -0500 +++ smeserver-phpldapadmin-1.2.3/root/etc/e-smith/templates/etc/phpldapadmin/config.php/05LdapServer 2013-11-05 14:54:42.000000000 -0500 @@ -62,6 +62,8 @@ /* Use TLS (Transport Layer Security) to connect to the LDAP server. */ // $servers->setValue('server','tls',false); +$servers->setValue('server','tls',false); +$servers->setValue('login','anon_bind',false); { open (PW, "/etc/openldap/ldap.pw") @@ -80,7 +82,8 @@ my $dc = esmith::util::ldapBase($domain); $OUT .= "\$servers->setValue('server','base',array('$dc'));\n"; - $OUT .= "\$servers->setValue('server','auth_type','config');\n"; - $OUT .= "\$servers->SetValue('login','dn','cn=root,$dc');\n"; - $OUT .= "\$servers->setValue('login','pass','$pw');\n"; + $OUT .= "\$servers->setValue('login','base',array('$dc'));\n"; + $OUT .= "\$servers->setValue('login','auth_type','http');\n"; + $OUT .= "\$servers->SetValue('login','bind_id','cn=root,$dc');\n"; + $OUT .= "\$servers->setValue('login','bind_pass','$pw');\n"; }