Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - isaac

Pages: 1 2 3 [4] 5 6 ... 10
46
Installation and Upgrades / Re: Bug after update 1.2 to 1.4
« on: February 08, 2010, 05:20:10 pm »
Ok, run again:
Code: [Select]
sudo cat /var/lib/ebox/gconf/ebox/modules/users/%gconf.xml
sudo ls /var/lib/ebox/tmp/
and paste here.

47
Installation and Upgrades / Re: Bug after update 1.2 to 1.4
« on: February 08, 2010, 05:01:11 pm »
Uhm, weird, try to run:
Code: [Select]
dpkg -l | grep usersandgroups
sudo perl /usr/share/ebox-usersandgroups/migration/0005_migrate_new_ldap.pl
and paste the result here.

48
Installation and Upgrades / Re: Bug after update 1.2 to 1.4
« on: February 08, 2010, 04:49:29 pm »
Ok, let's see, to upgrade to the latest usersandgroups run:
Code: [Select]
sudo apt-get update
sudo apt-get install ebox-usersandgroups

Probably the easiest way for you to get the files out of the system is to run:
Code: [Select]
sudo cp /var/lib/ebox/tmp/slapd-master-upgrade* /usr/share/ebox/www/
.

Then you should be able to access the files through:
Code: [Select]
https://192.168.122.204/data/slapd-master-upgrade.ldif
https://192.168.122.204/data/slapd-master-upgrade-ebox.ldif
using the IP address of your eBox instead of the one I puet.

49
Installation and Upgrades / Re: Master/slave problems again
« on: February 08, 2010, 04:43:33 pm »
Uhm, just run:
Code: [Select]
% sudo slapcat -F /etc/ldap/slapd-replica.d | head
and see what does that output.

50
Installation and Upgrades / Re: Bug after update 1.2 to 1.4
« on: February 08, 2010, 04:31:36 pm »
Ok, something failed upgrading your LDAP database.

I think there should be a new version available of the 'usersandgroups' package. Try installing that one, it should still not work, but it will run something that should help a bit and then we can continue from there.

It'd be great if you can attach the files:
Code: [Select]
/var/lib/ebox/tmp/slapd-master-upgrade.ldif
/var/lib/ebox/tmp/slapd-master-upgrade-ebox.ldif
here.

Thanks

51
Installation and Upgrades / Re: Master/slave problems again
« on: February 08, 2010, 03:39:10 pm »
Uhm, not sure :)

Can you run, replacing username with the name of one of your users and dc=hardy with your DN, this:
Code: [Select]
sudo slapcat -F /etc/ldap/slapd-replica.d/ -s 'uid=username,ou=Users,dc=hardy'

sudo slapcat -F /etc/ldap/slapd-translucent.d/ -s 'uid=username,ou=Users,dc=hardy'

ldapsearch -D 'cn=ebox,dc=hardy2' -H 'ldap://127.0.0.1:1390/' -x -w $(sudo cat /var/lib/ebox/conf/ebox-ldap.passwd) -b 'uid=username,ou=Users,dc=hardy'

ldapsearch -D 'cn=ebox,dc=hardy2' -H 'ldap://127.0.0.1:1390/' -x -w $(sudo cat /var/lib/ebox/conf/ebox-ldap.passwd) -b 'uid=username,ou=Users,dc=hardy' sambaAcctFlags
and paste the output here?

Thanks

52
Installation and Upgrades / Re: Bug after update 1.2 to 1.4
« on: February 08, 2010, 03:10:59 pm »
Something went wrong in your upgrade, can you verify a few things for us? :)

First of all, let's verify if all the migrations were run:
Code: [Select]
sudo cat /var/lib/ebox/gconf/ebox/modules/users/%gconf.xml
.

You should have a line like:
Code: [Select]
        <entry name="data_version" mtime="1265215644" type="int" value="6">
paste it here to check your 'data_version'.

Then verify using:
Code: [Select]
ps aux | grep slapd
whether slapd is running at all or not.

If it's not running run the following:
Code: [Select]
sudo /usr/sbin/slapd -h "ldap:/// ldapi:/// ldaps:///" -g openldap -u openldap -F /etc/ldap/slapd.d/ -d 256
and paste here the output of that too.

Thanks for the report.

53
Installation and Upgrades / Re: 1.4-rc1 install failure
« on: February 02, 2010, 01:47:40 pm »
Oops, yeah, wrong link, sorry :)

54
Installation and Upgrades / Re: 1.4-rc1 install failure
« on: February 02, 2010, 01:27:40 pm »
Yeah, you also need the latest master as now the communication between the master and the slaves is done using SSL.

You should upgrade the master and all the slaves to the latest version. Some things will break, here is a document with how to fix most/all of them:
https://trac.ebox-platform.com/wiki/Document/Documentation/13To14Update

Let me know if you run into some problem not explained in that document or you need any further help.

Cheers!

55
Installation and Upgrades / Re: 1.4-rc1 install failure
« on: February 02, 2010, 12:59:42 pm »
Hi!

First of all, yeah, 1.4rc1 is a 'commercial' name for the latest 1.3.X version, right before 1.4 is released, so your repository is ok.

Is the LDAP master also up-to-date? Can you try running in the master:
Code: [Select]
sudo slapcat | grep -i master
sudo ls -l /etc/ldap/ssl/
sudo netstat -ltnp | grep slap
and paste here the output?

And also in the slave:
Code: [Select]
sudo ls -l /etc/ldap/ssl/
and paste it here too?

Thanks

56
Installation and Upgrades / Re: 1.3 -> 1.4 upgrade woes
« on: February 02, 2010, 02:16:08 am »
So do you actually have slaves or were you looking at that page for fun? :P

Let's assume the former, you should do the following, replacing 'dc=hardy2' with your actual base DN:
Code: [Select]
#install ldapvi
sudo apt-get install ldapvi
ldapvi -D 'cn=ebox,dc=hardy2' --bind simple -w $(sudo cat /var/lib/ebox/conf/ebox-ldap.passwd) -b 'dc=hardy2'

That will open a vi (or other) editor session with the contents of your LDAP. Look for the slave entries, that will look like this:
Code: [Select]
7 hostname=hardy1,ou=slaves,dc=hardy2
objectClass: slaveHost
hostname: hardy1

Add a new line right after hostname so it looks like:
Code: [Select]
7 hostname=hardy1,ou=slaves,dc=hardy2
objectClass: slaveHost
hostname: hardy1
port: 443

Then exit saving changes and it should work :)

57
Installation and Upgrades / Re: 1.3 -> 1.4 upgrade woes
« on: February 02, 2010, 01:18:00 am »
great  :)

58
Installation and Upgrades / Re: 1.3 -> 1.4 upgrade woes
« on: February 02, 2010, 01:02:38 am »
Thank you for the feedback. Yeah, I forgot to mention this in the document.

There have been some changes in the master and slaves schemas, and you have to update them manually. The process for that is the following.

Run:
Code: [Select]
hardy2% sudo ls /etc/ldap/slapd.d/cn\=config/cn\=schema
cn={0}core.ldif   cn={4}passwords.ldif cn={8}eboxmail.ldif
cn={1}cosine.ldif   cn={5}master.ldif cn={9}eboxfetchmail.ldif
cn={2}nis.ldif   cn={6}slaves.ldif
cn={3}inetorgperson.ldif  cn={7}authldap.ldif

The output should be similar to that one.

Then you should run (changing the numbers appropriately according to the result of the previous command):
Code: [Select]
sudo /etc/init.d/slapd stop
sudo cp /usr/share/ebox-usersandgroups/master.ldif /etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{5\}master.ldif
sudo cp /usr/share/ebox-usersandgroups/slaves.ldif /etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{6\}slaves.ldif

These files still need some small adjustments, you'll have to edit both of them:
Code: [Select]
/etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{5\}master.ldif
/etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{6\}slaves.ldif

And change the first line of them from, respectively:
Code: [Select]
dn: cn=master,cn=schema,cn=config
dn: cn=slaves,cn=schema,cn=config

to
Code: [Select]
dn: cn={5}master
dn: cn={6}slaves

again using the appropriate numbers :)

That should do the trick and you just need to restart slapd and the users module with:
Code: [Select]
sudo /etc/init.d/slapd start
sudo /etc/init.d/ebox users restart

I'll add this now to the document.

Cheers!

59
Uhm, apparently you are lacking the LDAP schema required for a master eBox.

If the rest of your setup is ok you can load it using:
Code: [Select]
sudo ldapadd -H 'ldapi://' -Y EXTERNAL -c

The command will wait for input, type this:
Code: [Select]
include: file:///usr/share/ebox-usersandgroups/master.ldif
include: file:///usr/share/ebox-usersandgroups/slaves.ldif

This should fix that problem, but if that's missing, you might miss other stuff too. Let me know :)

60
Installation and Upgrades / Re: Slave tries to connect to local LDAP
« on: January 20, 2010, 04:17:14 pm »
That configuration is not used at all. eBox will override all that settings.

Pages: 1 2 3 [4] 5 6 ... 10