[Bug 690237] New: yast2-dns-server fails to setup LDAP config
https://bugzilla.novell.com/show_bug.cgi?id=690237 https://bugzilla.novell.com/show_bug.cgi?id=690237#c0 Summary: yast2-dns-server fails to setup LDAP config Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: All OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: locilka@novell.com ReportedBy: wolfgang@rosenauer.org QAContact: jsrain@novell.com Found By: Community User Blocker: --- I've created an ldap server using YaST which apparently worked fine. Now my next step was to set up DNS using yast2-dns-server but at the moment I switched on LDAP support I got an error message that my ldap configuration is invalid: 2011-04-27 14:01:07 <1> oxlive(14168) [Perl] modules/DnsServer.pm(DnsServer::LdapInit):1629 Trying LDAP server: 127.0.0.1:389 2011-04-27 14:01:07 <1> oxlive(14168) [Perl] modules/DnsServer.pm(DnsServer::LdapInit):1642 Trying LDAP domain: dc=rosenauer,dc=org 2011-04-27 14:01:07 <1> oxlive(14168) [Perl] modules/DnsServer.pm(DnsServer::LdapInit):1649 Main configuration DN: 2011-04-27 14:01:07 <1> oxlive(14168) [Perl] modules/DnsServer.pm(DnsServer::LdapInit):1653 Main config DN not found The above might be true. The only thing in the LDAP is the base object at this point since I've just created it. The DNS module should create the structure it needs itself. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c1
--- Comment #1 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c2
--- Comment #2 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c3
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c4
Jiří Suchomel
Jiri, could you help me with this please?
I thought we usually create the default configuration
We do it in ldap-client module, as Wolfgang writes ("Create default configuration objects"). The objects created here are the basic on (usually ou=ldapconfig, written as BASE_CONFIG_DN in /etc/sysconfig/ldap) plus user and group objects. Maybe dns/mail/dhcp server should check if the main config object already exists and report proper error if it does not. Or even allow creating it. (In ldap-client, this is what CreateDefaultLDAPConfiguration function does) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c5
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c6
Jiří Suchomel
Jiri, is this functionality provided by some module? IMO if it's already written for users, it could be provided as a generic API?
It's there in Ldap.ycp, which you are already using. If you need to check presence of the object (specified by DN) in LDAP tree, use Ldap::GetLDAPEntry (string dn) It returns a map (empty for non-existing object) or nil in case of error. If your LDAP connection is already established, you can use the agent directly, e.g. with list objects = (list)SCR::Read (.ldap.search, $[ "base_dn": dn, "attrs": [], "scope": 0, // only this one "not_found_ok": true // do not throw error when object does not exist ]); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c7
--- Comment #7 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c8
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c9
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c10
--- Comment #10 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c11
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c12
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c15
--- Comment #15 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c16
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c19
--- Comment #19 from Bruce Ma
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c20
--- Comment #20 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c22
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c24
--- Comment #24 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c25
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=690237
https://bugzilla.novell.com/show_bug.cgi?id=690237#c26
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com