[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Install problem, ldap_bind: Can't contact LDAP server
Folks,
I'm trying to configure openldap on solaris 2.6, OpenLDAP 1.2.1, gdbm-1.7.3.
Everything seemed to compile and install.
I get the error - ldap_bind: Can't contact LDAP server
I removed the spaces in the suffix lines that were in the example files,
that's not it, see below. Is there way to see if the LPAD server can see
the database? It was created with the command below. See config files
below.
/opt/openldap/sbin/ldif2ldbm -f /opt/openldap/etc/openldap/slapd.conf -i
/opt/op
enldap/etc/openldap/myldif.ldif
Thanks,
Todd
/opt/openldap/bin/ldapsearch -h www2.hou.hop.lmsg.lmco.com -p 389 -D
'cn=wiersema, o=lmco, c=US' -w xxxxxxxx -b 'o=lmco' 'objectclass=*'
ldap_bind: Can't contact LDAP server
/opt/openldap/bin/ldapsearch -h 127.0.0.1 -p 389 'objectclass=*'
ldap_search: Can't contact LDAP server
ldap_search: additional info: Referral:
ldap://www2.hou.hop.lmsg.lmco.com
/opt/openldap/bin/ldapsearch -h www2.hou.hop.lmsg.lmco.com 'objectclass=*'
ldap_bind: Can't contact LDAP server
www2# more slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /opt/openldap/etc/openldap/slapd.at.conf
include /opt/openldap/etc/openldap/slapd.oc.conf
schemacheck on
referral ldap://www2.hou.hop.lmsg.lmco.com
pidfile /opt/openldap/var/slapd.pid
argsfile /opt/openldap/var/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "o=lmco,c=US"
#suffix "o=Your Organization Name, c=US"
directory /data/ldap
rootdn "cn=wiersema,o=lmco,c=US"
#rootdn "cn=root,o=Your Organization Name,c=US"
rootpw xxxxxxxx
# cleartext passwords, especially for the rootdn, should
# be avoid. See slapd.conf(5) for details.
www2# more myldif.ldif
dn: o=lmco,c=US
o: lmco
objectclass: organization
dn: cn=wiersema,o=lmco,c=US
cn: wiersema
sn: Wiersema
mail: todd.wiersema@lmco.com
objectclass: person
__________________
- server output - long
-------------------------------
/opt/openldap/libexec/slapd -f /opt/openldap/etc/openldap/slapd.conf -d 255
slapd 1.2.1-Release (Tue Apr 20 12:23:40 CDT 1999)
root@www2:/home/admin/packages/ldap_tim_99_04_20/ldap/servers/slapd
reading config file /opt/openldap/etc/openldap/slapd.conf
line 5 (include /opt/openldap/etc/openldap/slapd.at.conf)
reading config file /opt/openldap/etc/openldap/slapd.at.conf
line 1 (attribute photo bin)
line 2 (attribute personalsignature bin)
line 3 (attribute jpegphoto bin)
line 4 (attribute audio bin)
line 5 (attribute labeledurl ces)
line 6 (attribute userpassword ces)
line 7 (attribute telephonenumber tel)
line 8 (attribute facsimiletelephonenumber fax tel)
line 9 (attribute pagertelephonenumber pager tel)
line 10 (attribute homephone tel)
line 11 (attribute mobiletelephonenumber mobile tel)
line 12 (attribute aliasedObjectName dn)
line 13 (attribute member dn)
line 14 (attribute owner dn)
line 15 (attribute seealso dn)
line 16 (attribute manager dn)
line 17 (attribute documentauthor dn)
line 18 (attribute secretary dn)
line 19 (attribute lastmodifiedby dn)
line 20 (attribute associatedname dn)
line 21 (attribute naminglink dn)
line 22 (attribute reciprocalnaminglink dn)
line 23 (attribute dn dn)
line 6 (include /opt/openldap/etc/openldap/slapd.oc.conf)
reading config file /opt/openldap/etc/openldap/slapd.oc.conf
line 3 (objectclass top requires objectClass)
line 8 (objectclass alias requires aliasedObjectName,
objectClass)
line 16 (objectclass country requires objectClass,
callows searchGuide, description)
line 27 (objectclass locality requires objectClass
allows description, l, searchGuide,
seeAlso, st, streetAddress)
line 54 (objectclass organization requires objectClass,
oallows businessCategory, description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber, l,
physicalDeliveryOfficeName, postOfficeBox,
postalAddress, postalCode, preferredDeliveryMethod,
registeredAddress, searchGuide, seeAlso, st,
streetAddress, telephoneNumber, teletexTerminalIdentifier,
telexNumber, userPassword, x121Address)
line 81 (objectclass organizationalUnit requires objectClass,
ou allows businessCategory, description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber, l,
physicalDeliveryOfficeName, postOfficeBox, postalAddress,
postalCode, preferredDeliveryMethod,
registeredAddress, searchGuide, seeAlso, st,
streetAddress, telephoneNumber, teletexTerminalIdentifier,
telexNumber, userPassword, x121Address)
line 92 (objectclass person requires objectClass,
sn, cn allows description, seeAlso,
telephoneNumber, userPassword)
line 120 (objectclass organizationalPerson requires
objectClass, sn, cn allows description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber, l, ou,
physicalDeliveryOfficeName, postOfficeBox,
postalAddress, postalCode, preferredDeliveryMethod,
registeredAddress, seeAlso, st, streetAddress,
telephoneNumber, teletexTerminalIdentifier, telexNumber,
title, userPassword, x121Address)
line 146 (objectclass organizationalRole requires
objectClass, cn allows description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber,l, ou,
physicalDeliveryOfficeName, postOfficeBox,
postalAddress, postalCode, preferredDeliveryMethod,
registeredAddress, roleOccupant, seeAlso, st,
streetAddress, telephoneNumber, teletexTerminalIdentifier,
telexNumber, x121Address)
line 159 (objectclass groupOfNames requires objectClass,
member, cn allows businessCategory,
description, o, ou, owner,
seeAlso)
line 187 (objectclass residentialPerson requires objectClass,
sn, cn, l allows businessCategory,
description, destinationIndicator,
facsimileTelephoneNumber, internationaliSDNNumber,
l, physicalDeliveryOfficeName, postOfficeBox,
postalAddress, postalCode, preferredDeliveryMethod,
registeredAddress, seeAlso, st,
streetAddress, telephoneNumber, teletexTerminalIdentifier,
telexNumber, userPassword, x121Address)
line 197 (objectclass applicationProcess requires
objectClass, cn allows description, l,
ou, seeAlso)
line 210 (objectclass applicationEntity requires objectClass,
presentationAddress, cn allows description,
l, o, ou, seeAlso,
supportedApplicationContext)
line 218 (objectclass dSA requires objectClass,
presentationAddress, cn allows
knowledgeInformation)
line 231 (objectclass device requires objectClass,
cn allows description, l, o,
ou, owner, seeAlso, serialNumber)
line 236 (objectclass strongAuthenticationUser requires
objectClass, userCertificate)
line 245 (objectclass certificationAuthority requires
objectClass, authorityRevocationList,
certificateRevocationList, cACertificate allows
crossCertificatePair)
line 259 (objectclass pilotObject requires objectClass
allows audio, dITRedirect, info,
jpegPhoto, lastModifiedBy, lastModifiedTime,
manager,photo, uniqueIdentifier)
line 289 (objectclass newPilotPerson requires objectClass,
sn, cn allows businessCategory,
description, drink, homePhone,
homePostalAddress, janetMailbox, mail,
mailPreferenceOption, mobile,organizationalStatus,
otherMailbox, pager, personalSignature,
personalTitle, preferredDeliveryMethod, roomNumber,
secretary, seeAlso, telephoneNumber,
textEncodedORaddress, uid, userClass,
userPassword)
line 301 (objectclass account requires objectClass,
uid allows description, host, l,
o, ou, seeAlso)
line 337 (objectclass document requires objectClass,
documentIdentifier allows abstract, audio,
authorCN, authorSN, cn,
dITRedirect, description, documentAuthor,
documentLocation, documentPublisher,
documentStore, documentTitle, documentVersion,
info, jpegPhoto, keywords, l,
lastModifiedBy, lastModifiedTime, manager,o,
obsoletedByDocument, obsoletesDocument, ou,
photo, seeAlso, subject,
uniqueIdentifier, updatedByDocument,
updatesDocument)
line 347 (objectclass room requires objectClass,
cn allows description, roomNumber,
seeAlso,telephoneNumber)
line 359 (objectclass documentSeries requires objectClass,
cn allows description, l, o,
ou, seeAlso, telephoneNumber)
line 388 (objectclass domain requires objectClass,
dc allows associatedName, businessCategory,
description, destinationIndicator,
facsimileTelephoneNumber, internationaliSDNNumber,
l, o, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress,
searchGuide, seeAlso, st,
streetAddress, telephoneNumber,
teletexTerminalIdentifier, telexNumber,
userPassword, x121Address)
line 419 (objectclass rFC822localPart requires objectClass,
dc allows associatedName, businessCategory,
cn, description, destinationIndicator,
facsimileTelephoneNumber, internationaliSDNNumber,
l, o, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress, searchGuide,
seeAlso, sn, st, streetAddress,
telephoneNumber, teletexTerminalIdentifier, telexNumber,
userPassword, x121Address)
line 449 (objectclass dNSDomain requires objectClass,
dc allows associatedName, businessCategory,
dNSRecord, description, destinationIndicator,
facsimileTelephoneNumber, internationaliSDNNumber,
l, o, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress,
searchGuide, seeAlso, st, streetAddress,
telephoneNumber, teletexTerminalIdentifier, telexNumber,
userPassword, x121Address)
line 454 (objectclass domainRelatedObject requires
objectClass, associatedDomain)
line 463 (objectclass friendlyCountry requires objectClass,
c, co allows description,
searchGuide)
line 468 (objectclass simpleSecurityObject requires
objectClass, userPassword)
line 497 (objectclass pilotOrganization requires objectClass,
ou, o allows buildingName,
businessCategory, description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber, l, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress,
searchGuide, seeAlso, st,
streetAddress, telephoneNumber,
teletexTerminalIdentifier, telexNumber,
userPassword, x121Address)
line 505 (objectclass nadfObject requires objectClass
allows lastModifiedTime, nadfSearchGuide,
supplementaryInformation)
line 521 (objectclass usStateOrEquivalent requires
objectClass, st, fipsStateAlphaCode,
fipsStateNumericCode, l allows description,
lastModifiedTime, nadfSearchGuide, searchGuide,
seeAlso,streetAddress, supplementaryInformation)
line 536 (objectclass usPlace requires objectClass,
fips55, l allows description,
lastModifiedTime, nadfSearchGuide, searchGuide,
seeAlso,st, streetAddress, supplementaryInformation)
line 552 (objectclass usCountyOrEquivalent requires
objectClass, fipsCountyNumericCode, fips55, l
allows description, lastModifiedTime,
nadfSearchGuide, searchGuide, seeAlso, st,
streetAddress, supplementaryInformation)
line 557 (objectclass ansiOrgObject requires objectClass,
ansiOrgNumericCode)
line 571 (objectclass nadfApplicationEntity requires
objectClass, supportedApplicationContext,
presentationAddress, cn allows description, l,
o, ou, seeAlso,
supportedApplicationContext)
line 602 (objectclass nadfADDMD requires objectClass,
ad allows businessCategory, description,
destinationIndicator, facsimileTelephoneNumber,
internationaliSDNNumber, l, lastModifiedTime,
nadfSearchGuide, o, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress,
searchGuide, seeAlso, st, streetAddress,
supplementaryInformation, telephoneNumber,
teletexTerminalIdentifier, telexNumber, userPassword,
x121Address)
line 607 (objectclass publicObject requires objectClass,
namingLink)
line 612 (objectclass providerObject requires objectClass,
reciprocalNamingLink)
line 617 (objectclass nationalObject requires objectClass,
c)
line 624 (objectclass fips55Object requires objectClass,
fips55 allows st)
line 656 (objectclass restaurant requires objectClass,
description, telephoneNumber, streetAddress
allows Ambiance, Appearance, Average-price,
Closed,CreditCardsAccepted, Kosher, Max-price,
MaximumInParty, Min-price, Music,
NotRecommended, OutdoorSeating, Parking,
QualityOfService, QualityPriceRatio, Recommended,
RecommendedBy, Reservation, ServiceSpeed,
Specialty, Taux-de-frequentation, TransportationMeans,
facsimileTelephoneNumber, postalAddress)
line 661 (objectclass kerberosSecurityObject requires
objectClass, krbName)
line 731 (objectclass umichPerson requires objectClass,
sn, cn, universityID allows
affiliationCode,audio, businessCategory,
classStanding, description, destinationIndicator,
doNotDelete, doNotMove, drink, expire,
facsimileTelephoneNumber, homePhone, homePostalAddress,
internationaliSDNNumber,janetMailbox, jpegPhoto,
keepNames, krbName,l, labeledURL,
mail, mailPreferenceOption, memberOfGroup, mobile,
multiLineDescription, noBatchUpdates, notRegistered,
notice, onVacation, organizationalStatus,
otherMailbox, ou, pager, personalSignature,
personalTitle, photo, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, proxy, registeredAddress,
registrationStatus, roomNumber, secretary,
seeAlso, st, streetAddress, telephoneNumber,
teletexTerminalIdentifier, telexNumber, textEncodedORaddress,
title, uid, updateSource, userCertificate,
userClass, userPassword, vacationMessage,
x121Address, xacl)
line 772 (objectclass rfc822MailGroup requires objectClass,
owner, cn allows associatedDomain,
autoMgt,description, destinationIndicator, errorsTo,
facsimileTelephoneNumber, internationaliSDNNumber,
joinable, krbName, labeledURL,
mail, member, memberOfGroup, moderator,
multiLineDescription, notice, physicalDeliveryOfficeName,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, registeredAddress,
requestsTo, rfc822ErrorsTo, rfc822RequestsTo,
seeAlso, streetAddress, suppressNoEmailError,
telephoneNumber, teletexTerminalIdentifier, telexNumber,
userPassword, x121Address, xacl)
line 786 (objectclass image requires objectClass,
cn allows citation, copyright,
imageFiles, jpegPhoto, keywords,
multiLineDescription, owner, predominantColor)
line 800 (objectclass imageFile requires objectClass,
cn allows colorDepth, documentLocation,
fileFormat, fileSize, height, resolution,
seeAlso, width)
line 837 (objectclass service requires objectClass,
cn allows category, dependentUpon,
destinationIndicator, facsimileTelephoneNumber,
hoursOfOperation, internationaliSDNNumber,
jpegPhoto, keywords, labeledURL,
mail, multiLineDescription, owner,
physicalDeliveryOfficeName, platform,
postOfficeBox, postalAddress, postalCode,
preferredDeliveryMethod, product, provider,
ratingDescription, ratingTime, registeredAddress,
seeAlso, serviceArea, serviceRating,
streetAddress, telephoneNumber, teletexTerminalIdentifier,
telexNumber, x121Address)
line 882 (objectclass umichDocument requires objectClass,
documentIdentifier allows abstract, audio,
authorCN, authorSN, category, cn,
dITRedirect, description, documentAuthor,
documentAvailable, documentLocation,
documentPublisher, documentSeriesTitle, documentStore,
documentTitle, documentVersion, info, jpegPhoto,
keywords, l, labeledURL, lastModifiedBy,
lastModifiedTime, manager, multiLineAbstract,
o, obsoletedByDocument, obsoletesDocument, ou,
owner, photo, platform, product,
seeAlso, serviceArea, subject,
uniqueIdentifier, updatedByDocument,
updatesDocument)
line 891 (objectclass documentDescription requires
objectClass, cn allows labeledURL,
multiLineDescription, owner)
line 897 (objectclass labeledURLObject requires objectClass
allows labeledURL)
line 903 (objectclass cacheObject requires objectClass
allows ttl)
line 7 (schemacheck on)
line 8 (referral ldap://www2.hou.hop.lmsg.lmco.com)
line 10 (pidfile /opt/openldap/var/slapd.pid)
line 11 (argsfile /opt/openldap/var/slapd.args)
line 17 (database ldbm)
line 18 (defaultaccess read)
line 19 (suffix "o=lmco,c=US")
line 21 (directory /data/ldap)
line 22 (rootdn "cn=wiersema,o=lmco,c=US")
line 24 (rootpw ez2seeit)
slapd starting
listening for connections on 3, activity on:
before select active_threads 0
select activity on 1 descriptors
new connection on 5
activity on:
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x61030, ptr 0x61030, end 0x6103c
current len 12, contents:
02 01 01 ` 07 02 01 02 04 00 80 00
do_bind
do_bind: version 2 dn () method 128
send_ldap_result 0::
ber_flush: 14 bytes to sd 5
0 0c 02 01 01 a 07 0a 01 00 04 00 04 00
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 41 contents:
ber_dump: buf 0x61650, ptr 0x61650, end 0x61679
current len 41, contents:
02 01 02 c $ 04 00 0a 01 02 0a 01 00 02 01 00
02 01 00 01 01 00 a3 0f 04 01 o 04 0a l m c
o , 20 c = U S 0 00
do_search
SRCH "" 2 0 0 0 0
begin get_filter
EQUALITY
end get_filter 0
filter: (o=LMCO, C=US)
attrs:
send_ldap_result 9::Referral:
ldap://www2.hou.hop.lmsg.lmco.com
ber_flush: 57 bytes to sd 5
0 7 02 01 02 e 2 0a 01 09 04 00 04 + R e
f e r r a l : 0a l d a p : / / w
w w 2 . h o u . h o p . l m s g
. l m c o . c o m
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x67f78, ptr 0x67f78, end 0x67f7d
current len 5, contents:
02 01 04 B 00
do_unbind
listening for connections on 3, activity on:
before select active_threads 0