LDAP error during autoyast
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: 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 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Mode) 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Mode) 2005-09-21 16:28:44 <1> linux(2691) [-e] Initializing LDAP support 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Ldap) 2005-09-21 16:28:44 <3> linux(2691) [YCP] Service.ycp:80 Service ypbind does not exist. 2005-09-21 16:28:44 <3> linux(2691) [YCP] Service.ycp:80 Service autofs does not exist. 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Ldap) 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Ldap) 2005-09-21 16:28:44 <1> linux(2691) [-e] Main configuration DN: 2005-09-21 16:28:44 <1> linux(2691) [-e] Main config DN not found 2005-09-21 16:28:44 <1> linux(2691) [wfm] Y2WFMComponent.cc(import):579 Y2WFMComponent::import (Report) 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 ---------------------------------------- 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, Nick
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, Nick
-- 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
Hi Jiri, I tried your suggestion. Here's my changes to the autoyast xml file: <?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=clinics,dc=isgenesis,dc=com</ldap_domain> <!-- <ldap_address>10.1.128.1</ldap_address> --> <!-- <base_config_dn>cn=test,ou=test,dc=isgenesis,dc=com</base_config_dn> --> </ldap> I still get the same dialog box and log entries. I'm also trying commenting out the entire ldap section. Like so: <?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=clinics,dc=isgenesis,dc=com</ldap_domain> <ldap_address>10.1.128.1</ldap_address> <base_config_dn>cn=test,ou=test,dc=isgenesis,dc=com</base_config_dn> </ldap> --> I'll see how this works. Thanks, Nick 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, Nick
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, Nick
participants (2)
-
Jiří Suchomel
-
Nick Tzaperas