Changes between Version 7 and Version 8 of ldapiam2018


Ignore:
Timestamp:
Sep 12, 2018, 11:00:43 AM (6 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ldapiam2018

    v7 v8  
    11= Install the OpenLDAP Server on Ubuntu 18.04 LTS with eduPerson Schema =
    22
    3 It is assumed that you have already install your IDP Ubuntu server with a public IP address and a Domain Name (//idp.YOUR-DOMAIN//).
     3It is assumed that you have already install your IDP Ubuntu server with a public IP address and a Domain Name (//idp.instXY.ac.lk//).
    44
    55On your IDP server,
     
    1515Answer the prompts appropriately, using the information below as a starting point:
    1616* Omit OpenLDAP server configuration? '''No''' (we want an initial database and configuration)
    17 * DNS domain name: '''YOUR-DOMAIN''' (use the server's domain name, minus the hostname. This will be used to create the base entry for the information tree)
     17* DNS domain name: '''instXY.ac.lk''' (use the server's domain name, minus the hostname. This will be used to create the base entry for the information tree)
    1818* Organization name: '''Your Institute''' (This will simply be added to the base entry as the name of your institute)
    1919* Administrator password: '''whatever you'd like'''
     
    5252{{{
    5353organization = "Name of your institution"
    54 cn = idp.YOUR-DOMAIN
     54cn = idp.instXY.ac.lk
    5555tls_www_server
    5656encryption_key
     
    117117dn:cn=config
    118118changetype:modify
    119 add:olcTLSCACertificateFile
     119replace:olcTLSCACertificateFile
    120120olcTLSCACertificateFile:/etc/ssl/certs/ca_server.pem
    121121-
    122 add:olcTLSCertificateFile
     122replace:olcTLSCertificateFile
    123123olcTLSCertificateFile:/etc/ssl/certs/ldap_server.pem
    124124-
    125 add:olcTLSCertificateKeyFile
     125replace:olcTLSCertificateKeyFile
    126126olcTLSCertificateKeyFile:/etc/ssl/private/ldap_server.key
    127127}}}
     
    141141sudo service slapd start
    142142}}}
    143 Your clients can now be configured to encrypt their connections to the server over the conventional 'ldap://ldap.YOUR-DOMAIN:389' port by using STARTTLS.
     143Your clients can now be configured to encrypt their connections to the server over the conventional 'ldap://ldap.instXY.ac.lk:389' port by using STARTTLS.
    144144
    145145== Setting up the Client Machines ==
     
    195195Depending on your Institutes's Requirement, you may create group as follows:
    196196{{{
    197 dn: ou=People,dc=YOUR-DOMAIN,dc=ac,dc=lk
     197dn: ou=People,dc=instXY,dc=ac,dc=lk
    198198objectClass: organizationalUnit
    199199objectClass: top
    200200ou: People
    201201 
    202 dn: ou=Group,dc=YOUR-DOMAIN,dc=ac,dc=lk
     202dn: ou=Group,dc=instXY,dc=ac,dc=lk
    203203objectClass: organizationalUnit
    204204objectClass: top
     
    207207
    208208# System Admin Staff Group
    209 dn:cn=adm,ou=Group,dc=YOUR-DOMAIN,dc=ac,dc=lk
     209dn:cn=adm,ou=Group,dc=instXY,dc=ac,dc=lk
    210210cn:adm
    211211description:System Admin Staff
     
    215215
    216216# Acadamic staff Group
    217 dn:cn=acd,ou=Group,dc=YOUR-DOMAIN,dc=ac,dc=lk
     217dn:cn=acd,ou=Group,dc=instXY,dc=ac,dc=lk
    218218cn:acd
    219219description:Acadamic Staff
     
    223223
    224224# Students Group
    225 dn:cn=student,ou=Group,dc=YOUR-DOMAIN,dc=ac,dc=lk
     225dn:cn=student,ou=Group,dc=instXY,dc=ac,dc=lk
    226226cn:student
    227227description:Students
     
    231231
    232232# servers OU
    233 dn:ou=servers,dc=YOUR-DOMAIN,dc=ac,dc=lk
     233dn:ou=servers,dc=instXY,dc=ac,dc=lk
    234234description:servers
    235235objectClass:top
     
    238238
    239239# idp servers
    240 dn:cn=idp,ou=servers,dc=YOUR-DOMAIN,dc=ac,dc=lk
     240dn:cn=idp,ou=servers,dc=instXY,dc=ac,dc=lk
    241241cn:idp
    242242description:Identity Server
     
    251251# test User
    252252
    253 dn:uid=testme,ou=people,dc=YOUR-DOMAIN,dc=ac,dc=lk
     253dn:uid=testme,ou=people,dc=instXY,dc=ac,dc=lk
    254254cn:Test Me
    255255uid:testme
     
    275275Save the above as a ldif file and add it to your directory as
    276276{{{
    277 ldapadd -H ldap:// -x -D "cn=admin,dc=YOUR-DOMAIN,dc=ac,dc=lk" -W -Z -f path_to_file.ldif
    278 }}}
     277ldapadd -H ldap:// -x -D "cn=admin,dc=instXY,dc=ac,dc=lk" -W -Z -f path_to_file.ldif
     278}}}