Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2489 → Rev 2490

/conf/radius/ldap-alcasar
1,33 → 1,33
# -*- text -*-
# Lightweight Directory Access Protocol (LDAP) module for ALCASAR
ldap {
server = localhost
port = 389
identity = cn=alcasaradmin;cn=Users;dc=serverad;dc=com
password = mypass
base_dn = cn=Users;dc=serverad;dc=com
user {
base_dn = "${..base_dn}"
# "samaccountname=" for AD; "uid=" for LDAP
filter = (samaccountname=%{%{Stripped-User-Name}:-%{User-Name}})
}
options {
chase_referrals = yes
rebind = yes
res_timeout = 10
srv_timelimit = 3
net_timeout = 1
idle = 60
probes = 3
interval = 3
}
pool {
start = 5
min = 3
max = 10
uses = 0
retry_delay = 30
lifetime = 0
idle_timeout = 60
}
server = "localhost"
port = 389
identity = "cn=alcasaradmin;cn=Users;dc=serverad;dc=com"
password = "mypass"
base_dn = "cn=Users;dc=serverad;dc=com"
user {
base_dn = "${..base_dn}"
# "samaccountname=" for AD; "uid=" for LDAP
filter = (samaccountname=%{%{Stripped-User-Name}:-%{User-Name}})
}
options {
chase_referrals = yes
rebind = yes
res_timeout = 10
srv_timelimit = 3
net_timeout = 1
idle = 60
probes = 3
interval = 3
}
pool {
start = 5
min = 3
max = 10
uses = 0
retry_delay = 30
lifetime = 0
idle_timeout = 60
}
}
/scripts/alcasar-ldap.sh
1,5 → 1,7
#!/bin/bash
 
# $Id$
 
# alcasar-ldap.sh
# by Rexy
# This script is distributed under the Gnu General Public License (GPL)
31,11 → 33,11
;;
--on | -on)
$SED "s/^LDAP=.*/LDAP=on/g" $CONF_FILE
$SED "s/^server =.*/server = ldap:\/\/$LDAP_SERVER/g" $LDAP_MODULE
$SED "s/^identity =.*/identity = $LDAP_USER/g" $LDAP_MODULE
$SED "s/^password =.*/password = $LDAP_PASSWORD/g" $LDAP_MODULE
$SED "s/^base_dn =.*/base_dn = \"$LDAP_BASE\"/g" $LDAP_MODULE
$SED "s/^filter =.*/filter = \"($LDAP_UID=%{%{Stripped-User-Name}:-%{User-Name}})\"/g" $LDAP_MODULE
$SED "s/^\tserver =.*/\tserver = \"ldap:\/\/${LDAP_SERVER//\"/\\\\\\\"}\"/g" $LDAP_MODULE
$SED "s/^\tidentity =.*/\tidentity = \"${LDAP_USER//\"/\\\\\\\"}\"/g" $LDAP_MODULE
$SED "s/^\tpassword =.*/\tpassword = \"${LDAP_PASSWORD//\"/\\\\\\\"}\"/g" $LDAP_MODULE
$SED "s/^\tbase_dn =.*/\tbase_dn = \"${LDAP_BASE//\"/\\\\\\\"}\"/g" $LDAP_MODULE
$SED "s/^\tfilter =.*/\tfilter = \"(${LDAP_UID//\"/\\\\\\\"}=%{%{Stripped-User-Name}:-%{User-Name}})\"/g" $LDAP_MODULE
if [ ! -e /etc/raddb/mods-enabled/ldap ]
then
ln -s $LDAP_MODULE /etc/raddb/mods-enabled/ldap
Property changes:
Modified: svn:eol-style
-native
\ No newline at end of property
+LF
\ No newline at end of property
Added: svn:keywords
+Id
\ No newline at end of property