Re: [suse-autoinstall] LDAP error during autoyast
I tried that and it actually game me an extra popup =P Something about a network device needing to be configured. Howerver, after that popup, the same LDAP error message appears and I still got the exact same log entries. Thanks for your suggestion though. What I'm confused about is that the error message appears in DhcpServer.pm, yet in the logs the error message is sandwiched between 2005-09-21 16:28:44 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:26 ---------------------------------------- 2005-09-21 16:28:44 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:27 DnsServer auto started and 2005-09-21 16:42:33 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:92 DnsServer auto finished 2005-09-21 16:42:33 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:93 ---------------------------------------- So it looks like the DNS server is configured to use DHCP and DHCP is configured to use LDAP? Here's my DNS section: <dns-server> <chroot>1</chroot> <logging config:type="list"> <listentry> <key>category</key> <value>default { default_syslog; }</value> </listentry> </logging> <start_service>1</start_service> <zones config:type="list"> </zones> </dns-server> Any ideas? Thanks, Nick Lukas Ocilka wrote:
Hi,
Adding this into your profile might help: --- cut --- <dhcp-server> ... <use_ldap>0</use_ldap> </dhcp-server> --- cut ---
Lukas
Nick Tzaperas wrote:
Quick FYI, I tried commenting out the whole ldap section like I said in a previous e-mail and it didn't work either. Same dialog box and log entries. Is there anything else I can try?
Jiří Suchomel wrote:
Hi Nick!
I'm not sure, but from the quick look to the sources it looks like that you can prevent this popup to show when you _exclude_ ldap_address and base_config_dn keys from the xml file (assuming you really don't want tu use LDAP at all).
Jiri
On Monday 14 of November 2005 16:29, Nick Tzaperas wrote:
Greetings,
I cannot seem to avoid getting an LDAP error when doing an AutoYast install. A dialog box pops up saying "Invalid LDAP configuration. Cannot use LDAP." and you have to press OK to continue. Here's the y2log snip:
... ----------------------------------------
I was looking around at some of the YaST2 modules and it seems the error is coming from the DhcpServer.pm module, is this correct? If so, this error message is produced when $ldap_config_dn is not set. $ldap_config_dn gets set by Ldap->GetMainConfigDN () which appears to return base_config_dn which seems to be grabbed from the autoyast file. Here's the relevant snippet from the autoyast xml file I'm using:
<?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <ldap> <start_ldap>false</start_ldap> <ldap_domain>dc=foo,dc=bar,dc=com</ldap_domain> <ldap_address>10.1.128.1</ldap_address> <base_config_dn>cn=test,ou=test,dc=test,dc=com</base_config_dn> </ldap>
So, it appears I have base_config_dn set yet it's still not grabbing it. Any ideas? I'm not trying to use LDAP at all. I'm just trying to get it to where we don't have to intervene. Our entire build process is pretty much automated except for this LDAP error. Let me know if you need more info.
Thanks,
Hi! Could you please attach whole YaST logfiles? Preferably with the version with only <ldap> section commented out and the new one with <use_ldap> set to 0 in <dhcp-server> section. You can also open a bugzilla entry on bugzilla.novell.com and attach the logs there. And - sorry, I probably deleted the mail where you already wrote this information - can you write once again, which version do you use? Thanks, Jiri On Wednesday 16 of November 2005 16:08, Nick Tzaperas wrote:
I tried that and it actually game me an extra popup =P
Something about a network device needing to be configured. Howerver, after that popup, the same LDAP error message appears and I still got the exact same log entries. Thanks for your suggestion though.
What I'm confused about is that the error message appears in DhcpServer.pm, yet in the logs the error message is sandwiched between
2005-09-21 16:28:44 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:26 ---------------------------------------- 2005-09-21 16:28:44 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:27 DnsServer auto started
and
2005-09-21 16:42:33 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:92 DnsServer auto finished 2005-09-21 16:42:33 <1> linux(2691) [YCP] clients/dns-server_auto.ycp:93 ----------------------------------------
So it looks like the DNS server is configured to use DHCP and DHCP is configured to use LDAP? Here's my DNS section:
<dns-server> <chroot>1</chroot> <logging config:type="list"> <listentry> <key>category</key> <value>default { default_syslog; }</value> </listentry> </logging> <start_service>1</start_service> <zones config:type="list"> </zones> </dns-server>
Any ideas?
Thanks, Nick
Lukas Ocilka wrote:
Hi,
Adding this into your profile might help: --- cut --- <dhcp-server> ... <use_ldap>0</use_ldap> </dhcp-server> --- cut ---
Lukas
Nick Tzaperas wrote:
Quick FYI, I tried commenting out the whole ldap section like I said in a previous e-mail and it didn't work either. Same dialog box and log entries. Is there anything else I can try?
Jiří Suchomel wrote:
Hi Nick!
I'm not sure, but from the quick look to the sources it looks like that you can prevent this popup to show when you _exclude_ ldap_address and base_config_dn keys from the xml file (assuming you really don't want tu use LDAP at all).
Jiri
On Monday 14 of November 2005 16:29, Nick Tzaperas wrote:
Greetings,
I cannot seem to avoid getting an LDAP error when doing an AutoYast install. A dialog box pops up saying "Invalid LDAP configuration. Cannot use LDAP." and you have to press OK to continue. Here's the y2log snip:
... ----------------------------------------
I was looking around at some of the YaST2 modules and it seems the error is coming from the DhcpServer.pm module, is this correct? If so, this error message is produced when $ldap_config_dn is not set. $ldap_config_dn gets set by Ldap->GetMainConfigDN () which appears to return base_config_dn which seems to be grabbed from the autoyast file. Here's the relevant snippet from the autoyast xml file I'm using:
<?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <ldap> <start_ldap>false</start_ldap> <ldap_domain>dc=foo,dc=bar,dc=com</ldap_domain> <ldap_address>10.1.128.1</ldap_address> <base_config_dn>cn=test,ou=test,dc=test,dc=com</base_config_dn> </ldap>
So, it appears I have base_config_dn set yet it's still not grabbing it. Any ideas? I'm not trying to use LDAP at all. I'm just trying to get it to where we don't have to intervene. Our entire build process is pretty much automated except for this LDAP error. Let me know if you need more info.
Thanks,
-- Jiri Suchomel SuSE CR, s.r.o. e-mail: jsuchome@suse.cz Drahobejlova 27 tel:+420-2-96542385 190 00 Praha 9, Czech Republic http://www.suse.cz
participants (2)
-
Jiří Suchomel
-
Nick Tzaperas