Author Topic: 1.4 LDAP Master/Slave configuration  (Read 3392 times)

amurillo

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
1.4 LDAP Master/Slave configuration
« on: February 05, 2010, 07:03:58 am »
I installed 1.4 from scratch and I can't find the UI configuration for LDAP master/slave. Which packages do I need to install or where can I find it?

peterr

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #1 on: February 05, 2010, 09:45:29 am »
did you include ebox-usersandgroups in your install?  The ldap master/slave settings appear on the GUI under users and groups - until you configure master/slave settings you will just have an option 'mode'
After you have set up mode you will then have the full usersandgroups setting menus and mode will no longer be available.

amurillo

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #2 on: February 05, 2010, 02:55:42 pm »
The package is installed, however I can only see the following options under Users and Groups:
- Users
- Groups
- Default User Template
- LDAP Info
- Slave Status

I cannot see the "Mode" option.

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #3 on: February 05, 2010, 03:02:16 pm »
In command line, run:
Code: [Select]
sudo /usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall

amurillo

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #4 on: February 05, 2010, 04:47:08 pm »
Still not able to see the option. Here is the install log:

Code: [Select]
WARNING!!
All your LDAP data and the eBox modules depending on it are going to be erased.
Press Control-C now if you are not sure of what you are doing.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libsmbclient sane-utils aspell-en ldap-auth-config libtalloc1
  libnet-ldap-perl openprinting-ppds hplip-gui libpolkit-dbus2 liblcms1
  libhal-storage1 foomatic-db-engine libcupsimage2 gamin libgphoto2-port0
  smbldap-tools aspell poppler-utils smbclient gnome-mime-data cupsys-client
  libpolkit-gnome0 cupsddk python-reportlab policykit-gnome libsane
  odbcinst1debian1 ttf-dustin libcap2 samba-vscan libfreeradius2
  python-imaging libgnomevfs2-common hpijs libgnomevfs2-extra foomatic-filters
  squid-common dansguardian libx86-1 hplip libunicode-string-perl libwbclient0
  auth-client-config notification-daemon libslp1 quota libnotify1
  libstartup-notification0 libnss-ldap gnome-keyring libavahi-glib1
  libsmbiosxml1 libsmbios1 libdigest-md4-perl shared-mime-info avahi-utils
  cupsys-common policykit libgamin0 libnss-mdns libcrypt-rijndael-perl
  unixodbc libwnck22 libavahi-common-data libsexy2 libavahi-core5 vbetool acl
  samba-common libxres1 python-qt3 hal freeradius-common python-sip4
  libenchant1c2a libgnomevfs2-0 libconvert-asn1-perl libpoppler2
  libpolkit-grant2 libieee1284-3 powermgmt-base cupsddk-drivers pm-utils
  foomatic-db-hpijs samba libnet-cups-perl libcrypt-smbhash-perl
  libhunspell-1.1-0 libgs8 freeradius-utils ldap-utils psfontmgr uswsusp squid
  libpam-ldap libdaemon0 libgnome-keyring0 libsmbios-bin libunicode-map-perl
  avahi-daemon ghostscript libavahi-client3 libwnck-common
  libunicode-map8-perl foomatic-db libavahi-compat-libdnssd1 radeontool
  ldap-auth-client hal-info libqt3-mt dictionaries-common samba-common-bin
  libjcode-pm-perl libexif12 libglu1-mesa libpaper-utils libquota-perl cupsys
  libaudio2 gnome-mount freeradius libunicode-maputf8-perl libavahi-common3
  libpam-gnome-keyring libaspell15 libmng1 hpijs-ppds libexporter-cluster-perl
  gsfonts libpaper1 hplip-data freeradius-ldap libpolkit2 libgphoto2-2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ebox-printers* ebox-radius* ebox-samba* ebox-squid* ebox-usersandgroups*
  slapd*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 9241kB disk space will be freed.
(Reading database ... 45597 files and directories currently installed.)
Removing ebox-printers ...
 * Restarting eBox module: logs                                          [ OK ]
Purging configuration files for ebox-printers ...
Removing ebox-radius ...
Purging configuration files for ebox-radius ...
Removing ebox-samba ...
Purging configuration files for ebox-samba ...
Removing ebox-squid ...
 * Restarting eBox module: logs                                          [ OK ]
Purging configuration files for ebox-squid ...
DROP TABLE
DROP TABLE
Removing ebox-usersandgroups ...
Purging configuration files for ebox-usersandgroups ...
Removing slapd ...
Stopping OpenLDAP: slapd.
Purging configuration files for slapd ...
Removing slapd configuration... done
Processing triggers for ebox ...
 * Restarting eBox module: apache                                        [ OK ]
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Removal complete. Reinstalling the removed eBox modules...
Reading package lists... Done
Building dependency tree
Reading state information... Done
ebox-antivirus is already the newest version.
ebox-ca is already the newest version.
ebox-ca set to manually installed.
ebox-dhcp is already the newest version.
ebox-dns is already the newest version.
ebox-ebackup is already the newest version.
ebox-firewall is already the newest version.
ebox-ids is already the newest version.
ebox-l7-protocols is already the newest version.
ebox-monitor is already the newest version.
ebox-network is already the newest version.
ebox-ntp is already the newest version.
ebox-objects is already the newest version.
ebox-objects set to manually installed.
ebox-openvpn is already the newest version.
ebox-services is already the newest version.
ebox-services set to manually installed.
ebox-software is already the newest version.
ebox-trafficshaping is already the newest version.
ebox-webserver is already the newest version.
The following extra packages will be installed:
  slapd
The following NEW packages will be installed:
  ebox-printers ebox-radius ebox-samba ebox-squid ebox-usersandgroups slapd
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2079kB of archives.
After this operation, 9241kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package slapd.
(Reading database ... 44832 files and directories currently installed.)
Unpacking slapd (from .../slapd_2.4.21-0ubuntu2hardy1_amd64.deb) ...
Selecting previously deselected package ebox-usersandgroups.
Unpacking ebox-usersandgroups (from .../ebox-usersandgroups_1.4-0ubuntu1~ppa1~hardy1_all.deb) ...
Selecting previously deselected package ebox-samba.
Unpacking ebox-samba (from .../ebox-samba_1.4.1-0ubuntu1~ppa1~hardy1_all.deb) ...
Selecting previously deselected package ebox-printers.
Unpacking ebox-printers (from .../ebox-printers_1.4-0ubuntu1~ppa1~hardy1_all.deb) ...
Selecting previously deselected package ebox-radius.
Unpacking ebox-radius (from .../ebox-radius_1.4-0ubuntu1~ppa1~hardy1_all.deb) ...
Selecting previously deselected package ebox-squid.
Unpacking ebox-squid (from .../ebox-squid_1.4-0ubuntu1~ppa1~hardy1_all.deb) ...
Setting up slapd (2.4.21-0ubuntu2hardy1) ...
  Creating initial slapd configuration... done.
Starting OpenLDAP: slapd.

Setting up ebox-usersandgroups (1.4-0ubuntu1~ppa1~hardy1) ...
 * Restarting eBox module: users                                         [ OK ]
Stopping OpenLDAP: slapd.
Starting OpenLDAP: slapd.

Setting up ebox-samba (1.4.1-0ubuntu1~ppa1~hardy1) ...
chown: invalid user: `root.__USERS__'

Setting up ebox-printers (1.4-0ubuntu1~ppa1~hardy1) ...

Setting up ebox-radius (1.4-0ubuntu1~ppa1~hardy1) ...

Setting up ebox-squid (1.4-0ubuntu1~ppa1~hardy1) ...
 * Restarting eBox module: logs                                          [ OK ]
 * Restarting eBox module: squid                                         [ OK ]
 * Restarting eBox module: firewall                                      [ OK ]

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for ebox ...
 * Restarting eBox module: apache                                        [ OK ]
Done.
Now you can go to 'Users and Groups -> Mode' and configure it again.

To reproduce, follow these steps on a clean Ubuntu 8.04 Server (64-bit) install:
Code: [Select]
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 342D17AC
echo -e "# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 342D17AC\ndeb \
http://ppa.launchpad.net/ebox/1.4/ubuntu hardy main" > /etc/apt/sources.list.d/ebox.list
aptitude update

Code: [Select]
aptitude -y purge apparmor
reboot

Code: [Select]
aptitude update
aptitude full-upgrade
aptitude -y install ebox-antivirus ebox-dhcp ebox-dns ebox-ebackup ebox-firewall ebox-ids ebox-l7-protocols \
ebox-monitor ebox-network ebox-ntp ebox-openvpn ebox-printers ebox-samba ebox-software \
ebox-squid ebox-trafficshaping ebox-webserver ebox-radius ebox-usersandgroups

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #5 on: February 05, 2010, 06:31:44 pm »
I'm in 32-bit. I don't think 64-bit is supported yet.

amurillo

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #6 on: February 06, 2010, 02:16:08 am »
Seems the issue is that the "Mode" option dissapears when the "Users and Groups" module is enabled for the first time.

Is there a way to revert back to the original "Mode" option? I will make some tests tonight.

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #7 on: February 06, 2010, 02:23:09 am »
Using this script:
Code: [Select]
sudo /usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall
No other way currently. I wonder if that's one of those features for the future.

The script appeared to finish without errors on your setup. I wonder why it's not showing mode. It has you setup permanently as a master.

amurillo

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #8 on: February 06, 2010, 02:57:38 am »
It finally worked, I had to:

1) Disable the module and remove the package
2) Install the package
3) sudo /usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall

If I enable the module, it defaults to master setup so I need to set it to slave before enabling it.

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: 1.4 LDAP Master/Slave configuration
« Reply #9 on: February 06, 2010, 07:29:31 am »
Yeah, you need to do it before enabling, hahaha.