Posted by David Tue 27th Feb 2007 23:41 - Syntax is Bash - 33 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
# Defining schemas and schema file locations
-
################################################################
-
include /usr/local/etc/openldap/schema/core.schema
-
include /usr/local/etc/openldap/schema/cosine.schema
-
include /usr/local/etc/openldap/schema/inetorgperson.schema
-
include /usr/local/etc/openldap/schema/nis.schema
-
include /usr/local/etc/openldap/schema/samba.schema
-
-
pidfile /var/run/slapd.pid
-
argsfile /var/run/slapd.args
-
-
# Defining our database and admin user + password
-
################################################################
-
database bdb
-
suffix "dc=cs,dc=dit,dc=ie"
-
rootdn "cn=Manager,dc=cs,dc=dit,dc=ie"
-
rootpw
-
directory /var/lib/cs
-
-
# Indexing for faster queries ( bad indexes can slow things up )
-
#################################################################
-
index objectClass eq
-
index cn pres,sub,eq
-
index sn pres,sub,eq
-
index uid pres,sub,eq
-
index displayName pres,sub,eq
-
index uidNumber eq
-
index gidNumber eq
-
index memberUid eq
-
index sambaSID eq
-
index sambaPrimaryGroupSID eq
-
index sambaDomainName eq
-
index default sub
-
-
# Defining Access Control Lists for access to various parts of our
-
# database. We can live without ACL's aswell, but some security should
-
# be in place.
-
#
-
#
-
######################################################################
-
access to attrs=userpassword,sambaLMPassword,sambaNTPassword
-
by anonymous auth
-
by self write
-
by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
-
by * none
-
-
access to attrs=shadowLastChange
-
by anonymous read
-
by self write
-
-
access to *
-
by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
-
by users read
-
by dn="uid=root,ou=Users,dc=cs,dc=dit,dc=ie" write
-
by * read
-
by self write
-
-bash-3.00# cat slapd.conf
-
# Defining schemas and schema file locations
-
################################################################
-
include /usr/local/etc/openldap/schema/core.schema
-
include /usr/local/etc/openldap/schema/cosine.schema
-
include /usr/local/etc/openldap/schema/inetorgperson.schema
-
include /usr/local/etc/openldap/schema/nis.schema
-
include /usr/local/etc/openldap/schema/samba.schema
-
-
pidfile /var/run/slapd.pid
-
argsfile /var/run/slapd.args
-
-
# Defining our database and admin user + password
-
################################################################
-
database bdb
-
suffix "dc=cs,dc=dit,dc=ie"
-
rootdn "cn=Manager,dc=cs,dc=dit,dc=ie"
-
rootpw athlon64
-
directory /var/lib/cs
-
-
# Indexing for faster queries ( bad indexes can slow things up )
-
#################################################################
-
index objectClass eq
-
index cn pres,sub,eq
-
index sn pres,sub,eq
-
index uid pres,sub,eq
-
index displayName pres,sub,eq
-
index uidNumber eq
-
index gidNumber eq
-
index memberUid eq
-
index sambaSID eq
-
index sambaPrimaryGroupSID eq
-
index sambaDomainName eq
-
index default sub
-
-
# Defining Access Control Lists for access to various parts of our
-
# database. We can live without ACL's aswell, but some security should
-
# be in place.
-
#
-
#
-
######################################################################
-
access to attrs=userpassword,sambaLMPassword,sambaNTPassword
-
by anonymous auth
-
by self write
-
by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
-
by * none
-
-
access to attrs=shadowLastChange
-
by anonymous read
-
by self write
-
-
access to *
-
by dn="cn=Manager,dc=cs,dc=dit,dc=ie" write
-
by users read
-
by dn="uid=root,ou=Users,dc=cs,dc=dit,dc=ie" write
-
by * read
-
by self write
-
PermaLink to this entry https://pastebin.co.uk/11096
Posted by David Tue 27th Feb 2007 23:41 - Syntax is Bash - 33 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0