DHCPserver in LDAP objectClass=dhcpServer not available


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users DHCPserver in LDAP objectClass=dhcpServer not available
# 1  
Old 03-08-2013
DHCPserver in LDAP objectClass=dhcpServer not available

Hi,

i would like to bind ein dhcpserver to the LDAP. I have here to systems. One Gentoo and one Ubuntu 12.04 LTS. On both systems LDAP is running without problems. So i would like to add the DHCP-Server (is on the same machine) to LDAP.

Ok, i have done this, but the DHCP-Server can't start, because there is an wrong, or not available objectclass sounds "dhcpServer". I've testet this on both maschines, and there are the same problems. So i think i've done something wrong. In the "dhcp.schema" i can find this ojectclass, but when i will add this objectclass, i can't find it to choose.
Code:
objectclass ( 2.16.840.1.113719.1.203.6.12 
        NAME 'dhcpServer' 
        DESC 'DHCP Server Object' 
        SUP top 
        MUST (cn $ dhcpServiceDN) 
        MAY (dhcpVersion $ dhcpImplementation $ dhcpHashBucketAssignment $ dhcpDelayedServiceParameter $ dhcpMaxClientLeadTime $ dhcpFailOverEndp$ 
        X-NDS_CONTAINMENT ('o' 'ou' 'dc') )

My dhcpconfig:
Code:
ldap-server "localhost"; 
ldap-port 389; 
ldap-base-dn "ou=dhcp,ou=services,dc=tux,dc=local"; 
ldap-dhcp-server-cn "192.168.2.0"; 
ldap-method dynamic; 
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

When i start the dhcp-server:
Code:
Error: Cannot find LDAP entry matching (&(objectClass=dhcpServer)(cn=192.168.2.0,ou=dhcp,ou=services,dc=tux,dc=local))
Configuration file errors encountered -- exiting

And yes this entry is there, but not with this ojectclass.

Here is my ldapobject:
Code:
dn: cn=192.168.2.0,ou=dhcp,ou=services,dc=tux,dc=local 
objectClass: top 
objectClass: dhcpOptions 
objectClass: dhcpSubnet 
cn: 192.168.2.0 
dhcpNetMask: 24 
dhcpRange: 192.168.2.2 192.168.2.100 
dhcpOption: domain-name "tux.local" 
dhcpOption: domain-name-servers 192.168.2.1, 8.8.8.8 
dhcpOption: routers 192.168.2.1 
dhcpOption: netbios-name-servers 192.168.2.1 
dhcpOption: netbios-node-type 4 
dhcpOption: subnet-mask 255.255.255.0 
dhcpStatements: default-lease-time 8000 
dhcpStatements: max-lease-time 9000

What should i do to add the right ojectclass to this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

2. Solaris

Need ldap id

Need to find the ldap id's of all the users in my organizations... is there any command??? (4 Replies)
Discussion started by: Syed Imran
4 Replies

3. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

4. Solaris

Not able to connect with LDAP

Hey Guys, I am having problems here and I need some assistance. I have installed Oracle Directory server 11.0 and have got a self signed cert imported. I can use the command "openssl s_client -connect localhost:636" to connect to the server to verify that it is listening on port 636.. however... (0 Replies)
Discussion started by: s ladd
0 Replies

5. HP-UX

How to disable LDAP

I am having a problem adding groups to a HPUX system. Can anyone tell me how to disable LDAP on a HPUX box? Thnks JB (0 Replies)
Discussion started by: jackiebaron
0 Replies

6. Solaris

LDAP

Hello Guurz, Simple doubt, Should LDAP master server must be configured as a LADP client as well? (2 Replies)
Discussion started by: bullz26
2 Replies

7. Solaris

help with LDAP

Hi, i'm trying to import LDAP database to a new system and i need help with that. I've got a LDAP schema and a ldif file with all data, so how should i proceed with creating new schema and how to import data. tnx in advance :) (5 Replies)
Discussion started by: n00b
5 Replies

8. UNIX for Dummies Questions & Answers

LDAP help

Folks; I need to install/configure LDAP on Solaris 10 Help please (0 Replies)
Discussion started by: Katkota
0 Replies

9. Linux

Ldap

Can I configure LDAP in Linux Server (ES 3) to make user authentication for Internet users residing in same LAN ? Users should be running Windows XP..... So i mean a cross platform authentication..... If any one have the solution please help me with details..... (2 Replies)
Discussion started by: dipanrc
2 Replies

10. UNIX for Advanced & Expert Users

ldap

I have just installed openldap on solaris 8 machine and would like to configure ldap to store users username and password, so that users can get authenticate by ldap. How do I configure ldap to store username and password. Any suggestion would be appreciated Thanks in Advance (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question