Code

* more debug infos to fix bug 495 (no ldap infos for clients which are in more than...
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Jun 2008 13:20:48 +0000 (13:20 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Jun 2008 13:20:48 +0000 (13:20 +0000)
* has to be tested at customer system

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

gosa-si/modules/ClientPackages.pm

index 77cc61880eb61881eb0c32824115e969e20ddbfd..1a0c71e4527be4461b9a651a641d031aa2cf2a8a 100644 (file)
@@ -792,13 +792,13 @@ sub new_ldap_config {
                        filter => "(&(objectClass=gosaGroupOfNames)(member=$dn))");
                #$mesg->code && die $mesg->error;
                if($mesg->code) {
-                       &main::daemon_log("$session_id ".$mesg->error, 1);
+                       &main::daemon_log("$session_id ERROR: unable to search for '(&(objectClass=gosaGroupOfNames)(member=$dn))': ".$mesg->error, 1);
                        return;
                }
 
                # Sanity check
                if ($mesg->count != 1) {
-                       &main::daemon_log("$session_id WARNING: no LDAP information found for client mac $macaddress", 1);
+                       &main::daemon_log("$session_id WARNING: no or more via an object class inherited LDAP information found for client mac $macaddress", 1);
                        return;
                }
 
@@ -816,6 +816,11 @@ sub new_ldap_config {
 
        @servers= sort (@servers);
 
+    # complain if no ldap information found
+    if (@servers == 0) {
+        &main::daemon_log("$session_id ERROR: no gotoLdapServer information for LDAP entry with filter '(&(objectClass=gosaGroupOfNames)(member=$dn))'");
+    }
+
        foreach $server (@servers){
                 # Conversation for backward compatibility
                 if (not $server =~ /^\d+:[^:]+:ldap[^:]*:\/\// ) {