Difference between revisions of "OpenLDAP"

From HackerNet
Jump to: navigation, search
Tag: visualeditor
Line 2: Line 2:
  
 
== Server ==
 
== Server ==
Verifierat på Debian 7
 
  
<code>apt-get update
+
<code>apt-get update && apt-get install slapd ldap-utils</code>
apt-get install slapd ldap-utils</code>
 
  
 +
Slå sedan in det lösenord du vill att admin kontot ska ha.
 +
 +
Öppna filen
 +
 +
<code>vim /etc/ldap/ldap.conf</code>
 +
 +
Och ändra <code>BASE</code> och <code>URI</code> , spara sedan filen.
 +
#
 +
<nowiki># LDAP Defaults
 +
#
 +
 +
#</nowiki> See ldap.conf(5) for details
 +
<nowiki>#</nowiki> This file should be world readable but not world writable.
 +
 +
BASE    dc=example,dc=com
 +
URI    ldap://192.168.0.100 ldap://192.168.0.100:666
 +
 +
<nowiki>#</nowiki>SIZELIMIT      12
 +
<nowiki>#</nowiki>TIMELIMIT      15
 +
<nowiki>#</nowiki>DEREF          never
 +
 +
<nowiki>#</nowiki> TLS certificates (needed for GnuTLS)
 +
TLS_CACERT      /etc/ssl/certs/ca-certificates.crt
 
== Client ==
 
== Client ==

Revision as of 22:31, 12 January 2015

OpenLDAP är en central inloggnings server typ som Active directory är.

Server

apt-get update && apt-get install slapd ldap-utils

Slå sedan in det lösenord du vill att admin kontot ska ha.

Öppna filen

vim /etc/ldap/ldap.conf

Och ändra BASE och URI , spara sedan filen.

#
# LDAP Defaults
 #
 
 # See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE    dc=example,dc=com
URI     ldap://192.168.0.100 ldap://192.168.0.100:666

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

# TLS certificates (needed for GnuTLS)
TLS_CACERT      /etc/ssl/certs/ca-certificates.crt

Client