Code

Updated password.php
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 10:02:51 +0000 (10:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 10:02:51 +0000 (10:02 +0000)
-Fixed prolbem with uninitialized ACLs.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19046 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/password.php

index da42f14558a33264bb9f97b35303d1bc68a5cd54..448c10e2f724619f64f9dc0679a39a16444012b3 100644 (file)
@@ -262,6 +262,13 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])) {
         /* Do we have the selected user somewhere? */
         $ui= ldap_login_user($uid, $current_password);
 
+        /* Load ocMapping into userinfo */
+        $tmp= new acl($config, NULL, $ui->dn);
+        $ui->ocMapping= $tmp->ocMapping;
+
+
+        $ui->loadACL();
+
         if ($ui === NULL) {
             $message[]= _("Please check the username/password combination!");
         } else {