Hey there, when setting up LDAP and DHCPd from scratch on Leap 15.3, something is not working for me.
I followed the instructions to set up LDAP and in https://doc.opensuse.org/documentation/leap/security/single-html/book-security/index.html#sec-security-ldap-migrate-test i can see, that there are object classes migrated from openldap to 389 dirserv in 15.3, but when setting it up new (in an older server, that has been updated to 15.3) as described there, i cannot activate LDAP- Support in Yast2- DHCPd.
Maybe the schemas needed by yast have not been delivered (in /etc/dirsrv/instance/dse.ldif? or maybe in user-shema?)
Here is what i think could be the Error in the logs:
2021-12-22 17:28:28 <1> obel1x(32695) [Pkg] Package.cc(IsAvailable):554 Tag yast2-ldap-server is not available to install
2021-12-22 17:28:28 <3> obel1x(32695) [Perl] modules/LdapServerAccess.pm(LdapServerAccess::InstallLdapServer):60 Package yast2-ldap-server is not available
2021-12-22 17:28:28 <3> obel1x(32695) [Perl] modules/LdapServerAccess.pm(LdapServerAccess::AddLdapSchemas):88 Cannot install yast2-ldap-server, not checking LDAP schemas
2021-12-22 17:28:34 <1> obel1x(32695) [Perl] modules/DhcpServer.pm(DhcpServer::LdapPrepareToWrite):2676 No DHCP configuration defaults found in LDAP, creating it
2021-12-22 17:28:34 <1> obel1x(32695) [Perl] modules/DhcpServer.pm(DhcpServer::LdapPrepareToWrite):2685 Adding DHCP configuration defaults: cn=defaultDHCP,ou=ldapconfig,dc=obel1x,dc=de
2021-12-22 17:28:34 <3> obel1x(32695) [agent-ldap] LdapAgent.cc(debug_exception):505 ldap error while adding cn=defaultDHCP,ou=ldapconfig,dc=obel1x,dc=de (65): Object class violation
2021-12-22 17:28:34 <3> obel1x(32695) [agent-ldap] LdapAgent.cc(debug_exception):507 additional info: unknown object class "suseDhcpConfiguration"
2021-12-22 17:28:34 <3> obel1x(32695) [Ruby] yast/yast.rb(call_yast_function):204 Error occurred while creating cn=defaultDHCP,ou=ldapconfig,dc=obel1x,dc=de.
2021-12-22 17:28:36 <3> obel1x(32695) [Perl] modules/DhcpServer.pm(DhcpServer::LdapPrepareToWrite):2694 Error descr: $VAR1 = {
'code' => 65,
'tls_error' => 0,
'msg' => 'Object class violation',
'server_msg' => 'unknown object class "suseDhcpConfiguration"
'
};
2021-12-22 17:28:36 <3> obel1x(32695) [agent-ldap] LdapAgent.cc(debug_exception):505 ldap error while adding cn=config1,cn=obel1x,ou=DHCP,dc=obel1x,dc=de (20): Type or value exists
2021-12-22 17:28:36 <3> obel1x(32695) [agent-ldap] LdapAgent.cc(debug_exception):505 ldap error while adding cn=192.168.178.0,cn=config1,cn=obel1x,ou=DHCP,dc=obel1x,dc=de (32): No such object
has anybody a working version and can tell me,
- where those objects should be declared?
- what packages do they come from (if not forgotten)?
- Export them to be included in Packages
br, daniel