[yast-commit] r59783 - in /trunk/dns-server: package/yast2-dns-server.changes src/DnsServer.pm
Author: locilka Date: Thu Nov 26 14:19:09 2009 New Revision: 59783 URL: http://svn.opensuse.org/viewcvs/yast?rev=59783&view=rev Log: Fixed LDAP initialization (bnc #557090) Modified: trunk/dns-server/package/yast2-dns-server.changes trunk/dns-server/src/DnsServer.pm Modified: trunk/dns-server/package/yast2-dns-server.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/package/yast2-dns-server.changes?rev=59783&r1=59782&r2=59783&view=diff ============================================================================== --- trunk/dns-server/package/yast2-dns-server.changes (original) +++ trunk/dns-server/package/yast2-dns-server.changes Thu Nov 26 14:19:09 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Nov 26 14:00:19 CET 2009 - locilka@suse.cz + +- Fixed LDAP initialization (bnc #557090). + +------------------------------------------------------------------- Fri Mar 20 16:49:47 CET 2009 - locilka@suse.cz - Correcting the last change: forwarders.conf is always included. Modified: trunk/dns-server/src/DnsServer.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/DnsServer.pm?rev=59783&r1=59782&r2=59783&view=diff ============================================================================== --- trunk/dns-server/src/DnsServer.pm (original) +++ trunk/dns-server/src/DnsServer.pm Thu Nov 26 14:19:09 2009 @@ -1784,7 +1784,7 @@ # check if the schema is properly included NetworkInterfaces->Read (); - if ($ldap_server eq "127.0.0.1" || $ldap_server eq "localhost" + if ($ldap_server =~ /^127\.0\.0\.[0-9]+$/ || $ldap_server eq "localhost" || $ldap_server eq "::1" || -1 != index (lc ($ldap_server), lc (Hostname->CurrentHostname())) || 0 != scalar (@{NetworkInterfaces->Locate ("IPADDR", $ldap_server)})) { @@ -1797,7 +1797,7 @@ } # connect to the LDAP server - my $ret = Ldap->LDAPInit (0, 0); + my $ret = Ldap->LDAPInit (); if ($ret ne "") { Ldap->LDAPErrorMessage ("init", $ret); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org