Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCPserver in LDAP objectClass=dhcpServer nicht auffindbar
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 308
Location: Austria

PostPosted: Wed Mar 06, 2013 1:20 pm    Post subject: DHCPserver in LDAP objectClass=dhcpServer nicht auffindbar Reply with quote

Hallo Leute,

hab hier ein Gentoo mit LDAP, Samba, usw. jetzt hab ich versucht den DHCPserver einzupflegen. Problem bei der ganzen Sache ist immer folgende Fehlermeldung wenn ich die DHCPeinstellungen in LAM ändern möchte: Bitte ändern Sie Ihren LDAP-Suffix auf einen LDAP-Eintrag mit der Objektklasse "dhcpServer" Ich vermute das deswegen der DHCP auch nicht startet.

LOGmeldung beim Versuch den DHCP zu starten: Cannot find LDAP entry matching (&(objectClass=dhcpServer)(cn=192.168.2.0)) Tja, die Objektklasse gibt es ja auch nicht. Und wenn ich sie dem dem Eintrag hinzufügen möchte, ist sie unauffindbar. Das gibt es ja nicht. Was muss ich machen damit das Teil tut? Unter dem Schema gibts den Eintrag:
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') )

Meine dhcpconfig sieht so aus:
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";

Und das Serverobjekt für LDAP sieht so aus:
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

Ich hab das ganze auch schon auf Ubuntu 12.04 probiert, das tut ganz gleich. Also irgendwo ist hier wohl ein Fehler drinnen.

lg
boospy
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 267

PostPosted: Sat Mar 09, 2013 5:26 am    Post subject: Reply with quote

Du schau nein ganz objectclass
Wenn diese kann sein...
Code:

objectclass ( 2.16.840.1.113719.1.203.6.12
NAME 'dhcpServer'
DESC 'DHCP Server Object'
SUP top
MUST (cn:192.168.2.0)
MAY (dhcpVersion $ dhcpImplementation $ dhcpHashBucketAssignment $ dhcpDelayedServiceParameter $ dhcpMaxClientLeadTime $ dhcpFailOverEndp$
X-NDS_CONTAINMENT ('o' 'ou' 'dc'))
)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum