Hello,

i want to have a special ldap-Domain. So I've tried to switch from 'ebox' 
to: 'ldap.mydom.ain'.
It would be better to configure the domain in a config-file ore something else 
instead of spreading it hardcoded it to an amount of perl files.

This is what I've done but it would be a great solution for future realeases 
to make it configurable:
--------------------------------------------------------
## install some stuff
aptitude install ldapscripts 
cd /root
## make backup
slapcat > /root/slap.ldif
mv slap.ldif slap.ldif_initial_ebox
## configure ldap with new Domain
sudo dpkg-reconfigure slapd
## change all entries in ldif file
cat slap.ldif_initial_ebox | sed "s/dc=ebox/dc=ldap, dc=mydom, dc=ain/g" | \
sed "s/o: warp/o: Datenwerk GmbH/" |sed "s/dc: ebox/dc: ldap/" > \
slap.ldif_DW_ebox 

/etc/init.d/slapd stop
## let it rock
slapadd -c -l slap.ldif_DW_ebox
/etc/init.d/slapd start

## some perl-files have to be changed 
file=/usr/share/perl5/EBox/SambaLdapUser.pm ; \
sed -i_bk "s/dc=ebox/dc=ldap, dc=mydom, dc=ain/g" $file
file=/usr/share/perl5/EBox/Ldap.pm ; \
sed -i_bk "s/dc=ebox/dc=ldap, dc=mydom, dc=ain/g" $file
file=/usr/share/perl5/EBox/Samba/Model/PDC.pm ; \
sed -i_bk "s/dc=ebox/dc=ldap, dc=mydom, dc=ain/g" $file
file=/usr/share/perl5/EBox/Samba/ImportFromLdif.pm ; \
sed -i_bk "s/dc=ebox/dc=ldap, dc=mydom, dc=ain/g" $file
/etc/init.d/ebox restart

## solve problems with ldap and local users: 
in /etc/adduser.conf
FIRST_SYSTEM_UID=100
LAST_SYSTEM_UID=1999
FIRST_UID=2000
LAST_UID=29999
--------------------------------------------------------

I think the system will crash when getting updates :-(

eBox-Version    1.2.2
OperatingSystem ubuntu 8.04.3 server
as XEN-VM with LVM and DRBD

-- 
Marcus Wellnitz
Datenwerk GmbH
Vogelsbergstr. 34
60316 Frankfurt am Main

Telefon +49 (0) 69/9434086-0
Fax     +49 (0) 69/9434086-9
E-Mail  [email protected]
Web     www.datenwerk-it.de

Sitz: Frankfurt am Main, Amtsgericht  Frankfurt am Main HRB 55221
Geschäftsführer: Michael Beck, Dr. Thomas Latz
_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user

Reply via email to