View Full Version : mandriva directory server on debian lenny
maumar
9th May 2009, 19:58
I am trying to install mds on lenny without success.
http://www.howtoforge.com/mandriva-directory-server-on-debian-etch is not suffcient to install on lenny.
I start this thread to collect some notes and corrections to this howto.
Notes:
apt-get install mmc-web-base mmc-web-mail mmc-web-network mmc-web-proxy mmc-web-samba mmc-agent python-mmc-plugins-tools python-mmc-base python-mmc-mail python-mmc-network python-mmc-proxy python-mmc-samba postfix postfix-ldap sasl2-bin libsasl2 libsasl2-modules amavisd-new libdbd-ldap-perl libnet-ph-perl libnet-snpp-perl libnet-telnet-perl lzop nomarch zoo clamav clamav-daemon gzip bzip2 unzip unrar-free unzoo arj spamassassin libnet-dns-perl razor pyzor dcc-client slapd ldap-utils libnss-ldap libpam-ldap dhcp3-server dhcp3-server-ldap bind9 samba smbclient smbldap-tools cupsys cupsys-client foomatic-db-engine foomatic-db foomatic-db-hpijs foomatic-db-gutenprint foomatic-filters foomatic-filters-ppds fontconfig hpijs-ppds linuxprinting.org-ppds
is wrong. In lenny libsasl2, unzoo and dcc-client are not avaliable.
libsasl2 should be changed in libsasl2-2. For the others 2, they should be delisted.
For unzoo on lenny, please see this (http://lists.debian.org/debian-wnpp/2008/09/msg00131.html)
For dcc-client please see this (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464161)
maumar
9th May 2009, 20:10
At this point the LDAP server configuration file should look like this:
# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.
################################################## #####################
# Global Directives:
# Features to permit
#allow bind_v2
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/mmc.schema
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/printer.schema
include /etc/ldap/schema/mail.schema
include /etc/ldap/schema/dnszone.schema
include /etc/ldap/schema/dhcp.schema
schemacheck on
# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile /var/run/slapd/slapd.pid
# List of arguments that were passed to the server
argsfile /var/run/slapd/slapd.args
# Read slapd.conf(5) for possible values
loglevel 0
# Where the dynamically loaded modules are stored
modulepath /usr/lib/ldap
moduleload back_bdb
# The maximum number of entries that is returned for a search operation
sizelimit 500
# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1
################################################## #####################
# Specific Backend Directives for bdb:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend bdb
checkpoint 512 30
################################################## #####################
# Specific Backend Directives for 'other':
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
#backend <other>
################################################## #####################
# Specific Directives for database #1, of type bdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database bdb
# The base of your directory in database #1
suffix "dc=example,dc=com"
# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
rootdn "cn=admin,dc=example,dc=com"
rootpw {SSHA}kPd9OeiwGx4lyZUiQ2NFmzXV0JWyLV9A
# Where the database file are physically stored for database #1
directory "/var/lib/ldap"
# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0
# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057
# for more information.
# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500
# Indexing options for database #1
index objectClass,uidNumber,gidNumber eq
index cn,sn,uid,displayName pres,sub,eq
index memberUid,mail,givenname eq,subinitial
index sambaSID,sambaPrimaryGroupSID,sambaDomainName eq
index zoneName,relativeDomainName eq
index dhcpHWAddress,dhcpClassData eq
# Save the time that the entry gets modified, for database #1
lastmod on
# Where to store the replica logs for database #1
# replogfile /var/lib/ldap/replog
# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
access to attrs=userPassword,sambaLMPassword,sambaNTPassword
by dn="cn=admin,dc=example,dc=com" write
by anonymous auth
by self write
by * none
# Ensure read access to the base for things like
# supportedSASLMechanisms. Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work
# happily.
access to dn.base="" by * read
# The admin dn has full write access, everyone else
# can read everything.
access to *
by dn="cn=admin,dc=example,dc=com" write
by * read
# For Netscape Roaming support, each user gets a roaming
# profile for which they have write access to
#access to dn=".*,ou=Roaming,o=morsnet"
# by dn="cn=admin,dc=example,dc=com" write
# by dnattr=owner write
################################################## #####################
# Specific Directives for database #2, of type 'other' (can be bdb too):
# Database specific directives apply to this databasse until another
# 'database' directive occurs
#database <other>
# The base of your directory for database #2
#suffix "dc=debian,dc=org"
using backend bdb is wrong, using it i get errors.
Instead, with hdb backend slapdcat does work fine.
maumar
10th May 2009, 09:42
Setting up slapd (2.4.11-1) ...
Creating new user openldap... done.
Creating initial slapd configuration... done.
Creating initial LDAP directory... done.
Starting OpenLDAP: slapd.
Setting up apache2.2-common (2.2.9-10+lenny2) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
during installation, dpkg-config doeas create slapd db and initialize it, thus it is recommended to use hdb instead of bdb
maumar
10th May 2009, 16:09
http://packages.debian.org/search?keywords=unzoo
unzoo is available for etch and sid, no lenny
maumar
10th May 2009, 17:47
as soon as you issue:
smbldap-populate -m 512 -a Administrator
do not run to check if Administrator account was created issuing:
pdbedit -L -v
but be quite and continue with
5.3 NSS LDAP Configuration
vi /etc/nsswitch.conf
6 PAM LDAP Configuration
vi /etc/pam.d/common-account
vi /etc/pam.d/common-password
vi /etc/pam.d/common-session
reboot
After rebboting, issuing
getent passwd
u will get:
Administrator:x:0:512:Netbios Domain Administrator:/home/Administrator:/bin/false
at last, Domain Administrator is there!
dexter1983
4th February 2010, 13:29
That's good news, but you mange to have a fully working server on debian lenny with mds?!
I 've search over the internet for a fully installation tutorial, but with no succes.
dexter1983
4th February 2010, 13:50
I did find this link: http://www.vogelweith.com/debian_server/07_postfix.php
maumar
7th February 2010, 00:44
That's good news, but you mange to have a fully working server on debian lenny with mds?!
I 've search over the internet for a fully installation tutorial, but with no succes.
I was not interested into postfix and mail system, what I tried to get was samb+ldap as Domain Controller, not more not less.
And at the end, I got it.
dexter1983
7th February 2010, 02:58
Thanq for your reply!
What about missing package?
How stable is your server? I mean I you update mmc with new version it is ok.
How did you rezolv with poledit for windows xp pc.
I 've ry to join on samba domain a linux station, but no succes, to e more exactly: ubuntu desktop using likewize wizard.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.