Skrevet av Emne: LDAP schema attributes for Outlook Express address book  (Lest 4688 ganger)

ATC

  • Gjest
LDAP schema attributes for Outlook Express address book
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • This article describes the technical stuff we needed to sort out in order to set up an OpenLDAP server that Outlook Express could use to find/verify email addresses.

    It does NOT cater for every possible scenario, and you have to substitute the data with your own where appropriate. "dc=atc, dc=no" refers to our internet domain "atc.no" but you can choose to model your LDAP directory in a different way.



    ATC

    • Gjest
    [Solved] LDAP schema attributes for Outlook Express address book
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • First, download and install the newest version of openldap, plus the client and servers RPM. If you don't use RH Linux, download and compile the appropriate tarball.

    Edit /etc/openldap/ldap.conf: (substitute with your data)

    BASE    dc=atc, dc=no
    HOST    ldap.atc.no
    PORT    389

    Edit /etc/openldap/slapd.conf, set the following:

    suffix          "dc=atc, dc=no"
    rootdn          "cn=floyd, dc=atc, dc=no"
    rootpw          xxxxxxx (cleartext password)

    Start your DLSP server:
    /etc/rc.d/init.d/ldap start

    Now you have to manually add the root entry to your LDAP directory. Create a file called "ldif" and substitute with your data:

    dn: dc=atc, dc=no
    dc: atc
    o: Ano-Tech Computers
    objectclass: organization
    objectclass: dcObject
    dn: cn=floyd, dc=atc, dc=no
    cn: floyd
    sn: floyd
    objectclass: person

    Now run:

    ldapadd -D "cn=floyd, dc=atc, dc=no" -W < ldif

    For manually testing and editing directory contents, download "LDAP Browser/Editor 2.8.1" from http://www.iit.edu/~gawojar/ldap

    These are the attributes Novell use in their NDS, I found that Outlook Express understands quite a few of them:

    # SCHEMA: inetOrgPerson
    # audio
    # businessCategory
    # carLicense
    # departmentNumber
    # employeeNumber  
    # employeeType
    # givenName
    # homePhone
    # homePostalAddress
    # initials  
    # jpegPhoto
    # labeledUri
    # mail  
    # manager
    # mobile
    # pager
    # ldapPhoto
    # preferredLanguage
    # #roomNumber
    # secretary
    # uid
    # userCertificate
    # userSMIMECertificate
    # x500UniqueIdentifier
    # displayName

    # SCHEMA: resedentialPerson:
    # businessCategory
    # x121Address
    # registeredAddress      
    # destinationIndicator  
    # preferredDeliveryMethod
    # telexNumber
    # teletexTerminalIdentifier
    # telephoneNumber
    # internationaliSDNNumber
    # facsimileTelephoneNumber
    # SA
    # postOfficeBox
    # postalCode  
    # postalAddress
    # physicalDeliveryOfficeName
    # S
    # L

    source: http://www.novell.com/products/nds/schema/

    Finally, here's how to add your LDAP server in Outlook Express:
    Tools | Accounts
    Add | Directory Service
    your.ldap.server
    Yes
    [Finish]
    Now open the properties, select "advanced" and specify the search base. I use "dn: dc=atc, dc=no"