summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aff7ae0)
raw | patch | inline | side by side (parent: aff7ae0)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 Jun 2008 13:37:42 +0000 (13:37 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 Jun 2008 13:37:42 +0000 (13:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11481 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/ClientPackages.pm | patch | blob | history |
index 1a0c71e4527be4461b9a651a641d031aa2cf2a8a..53aec283316e42aae4ec552750daa1c808a8b312 100644 (file)
scope => 'sub',
attrs => ['dn', 'gotoLdapServer', 'FAIclass'],
filter => "(&(objectClass=gosaGroupOfNames)(member=$dn))");
- #$mesg->code && die $mesg->error;
if($mesg->code) {
&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 or more via an object class inherited LDAP information found for client mac $macaddress", 1);
+ if ($mesg->count == 0) {
+ &main::daemon_log("$session_id WARNING: no LDAP informations found for client with filter '(&(objectClass=gosaGroupOfNames)(member=$dn))'", 3);
return;
- }
+ } elsif ($mesg->count >= 2) {
+ &main::daemon_log("$session_id ERROR: multiple LDAP informations found for client with filter '(&(objectClass=gosaGroupOfNames)(member=$dn))'", 1);
+ }
$entry= $mesg->entry(0);
$dn= $entry->dn;