[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-09 Thread Thierry Carrez
@Nathan: yes, rereading the slapd.access manpage I think you're right, the first match will define level of access: Access control checking stops at the first match of the what and who clause, unless otherwise dictated by the control clause. Also, given that: Each who clause list is

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-09 Thread Thierry Carrez
See bug 559070 (targeted to Lucid) for followup -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification because you are a member of Ubuntu Server Team,

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-09 Thread Thierry Carrez
@Nathan: yes, rereading the slapd.access manpage I think you're right, the first match will define level of access: Access control checking stops at the first match of the what and who clause, unless otherwise dictated by the control clause. Also, given that: Each who clause list is

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-09 Thread Thierry Carrez
See bug 559070 (targeted to Lucid) for followup -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-06 Thread Nathan Stratton Treadway
Using this new version of the slapd.postinst script, the cn=config database ends up with these two oldAccess attributes: $ sudo slapcat -bcn=config -solcDatabase={0}config,cn=config | grep olcAccess olcAccess: {0}to * by * none olcAccess: {1}to * by dn.exact=cn=localroot,cn=config manage by *

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-04-06 Thread Nathan Stratton Treadway
Using this new version of the slapd.postinst script, the cn=config database ends up with these two oldAccess attributes: $ sudo slapcat -bcn=config -solcDatabase={0}config,cn=config | grep olcAccess olcAccess: {0}to * by * none olcAccess: {1}to * by dn.exact=cn=localroot,cn=config manage by *

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Assignee: Mathias Gug (mathiaz) = Thierry Carrez (ttx) -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Status: Confirmed = In Progress -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification because you are a

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Launchpad Bug Tracker
This bug was fixed in the package openldap - 2.4.21-0ubuntu3 --- openldap (2.4.21-0ubuntu3) lucid; urgency=low * debian/slapd.postinst, debian/slapd.scripts-common: Upgrade databases before trying to convert to slapd.d, to avoid upgrade failure from hardy (LP: #536958) *

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Jay
As I commented earlier, I belive this is the same bug as in karmic, https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/450645. Will this be fixed so you can dist upgrade an ldap from jaunty - karmic - lucid ... or will this remain broken for karmic ? Thanks, Jay -- slapd package

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Nathan Stratton Treadway
I will try to actually run a test of this scenario sometime in the next few days, but at first glance it appears to me that simply adding {1} to both the grep and the sed lines of the postinst script will fix Hardy - Lucid upgrades, but will cause new problems for other upgrade paths. In

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
@Jay: once this is fixed, it can be backported for Karmic. @Nathan: My understanding is that the olcAccess line added before would make the package fail to start until it is manually fixed to include a {1}. The idea here is to keep the package working on a hardy-lucid upgrade, not to

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Nathan Stratton Treadway
Ah, never mind. I was thinking that if the user upgraded from jaunty up to karmic and then again to lucid, both copies of the oldAccess line would be added to the file (i.e. one with no index, by the karmic upgrade, and one with {1}, by the lucid upgrade) -- but I see now the postinst script

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Launchpad Bug Tracker
This bug was fixed in the package openldap - 2.4.21-0ubuntu3 --- openldap (2.4.21-0ubuntu3) lucid; urgency=low * debian/slapd.postinst, debian/slapd.scripts-common: Upgrade databases before trying to convert to slapd.d, to avoid upgrade failure from hardy (LP: #536958) *

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Jay
As I commented earlier, I belive this is the same bug as in karmic, https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/450645. Will this be fixed so you can dist upgrade an ldap from jaunty - karmic - lucid ... or will this remain broken for karmic ? Thanks, Jay -- slapd package

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Nathan Stratton Treadway
I will try to actually run a test of this scenario sometime in the next few days, but at first glance it appears to me that simply adding {1} to both the grep and the sed lines of the postinst script will fix Hardy - Lucid upgrades, but will cause new problems for other upgrade paths. In

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
@Jay: once this is fixed, it can be backported for Karmic. @Nathan: My understanding is that the olcAccess line added before would make the package fail to start until it is manually fixed to include a {1}. The idea here is to keep the package working on a hardy-lucid upgrade, not to

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Nathan Stratton Treadway
Ah, never mind. I was thinking that if the user upgraded from jaunty up to karmic and then again to lucid, both copies of the oldAccess line would be added to the file (i.e. one with no index, by the karmic upgrade, and one with {1}, by the lucid upgrade) -- but I see now the postinst script

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Assignee: Mathias Gug (mathiaz) = Thierry Carrez (ttx) -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-29 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Status: Confirmed = In Progress -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification because you are a

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-24 Thread Jay
I think this is a repetition of https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/450645 Other bug has been assigned low importance - this is a major problem and has been around since karmic. Be good to see some resolution of the various ldap issues in ubuntu at the minute. -- slapd

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-24 Thread Jay
I think this is a repetition of https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/450645 Other bug has been assigned low importance - this is a major problem and has been around since karmic. Be good to see some resolution of the various ldap issues in ubuntu at the minute. -- slapd

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-19 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Assignee: (unassigned) = Mathias Gug (mathiaz) -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-19 Thread Thierry Carrez
** Changed in: openldap (Ubuntu Lucid) Assignee: (unassigned) = Mathias Gug (mathiaz) -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade https://bugs.launchpad.net/bugs/538516 You received this bug notification

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-15 Thread Chuck Short
Thanks for the bug report, we'll try to get this fixed for lucid. Regards chuck ** Changed in: openldap (Ubuntu) Importance: Undecided = High ** Changed in: openldap (Ubuntu) Status: New = Confirmed -- slapd package configuration aborts due to ordered_value_sort failed on attr

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-15 Thread Steve Langasek
** Also affects: openldap (Ubuntu Lucid) Importance: High Status: Confirmed ** Changed in: openldap (Ubuntu Lucid) Milestone: None = ubuntu-10.04-beta-2 -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-15 Thread Steve Langasek
** Also affects: openldap (Ubuntu Lucid) Importance: High Status: Confirmed ** Changed in: openldap (Ubuntu Lucid) Milestone: None = ubuntu-10.04-beta-2 -- slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-15 Thread Chuck Short
Thanks for the bug report, we'll try to get this fixed for lucid. Regards chuck ** Changed in: openldap (Ubuntu) Importance: Undecided = High ** Changed in: openldap (Ubuntu) Status: New = Confirmed -- slapd package configuration aborts due to ordered_value_sort failed on attr

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
I found that running slaptest -F /etc/ldap/slapd.d generated that same error message. To investigate further, I used the command line slaptest -F /etc/ldap/slapd.d -d 1 21 | grep \.ldif to track down the full path of the file that contained the offending line, which turned out to be

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
I did some additional testing and believe that all Hardy - Lucid upgrades will hit this bug. Specifically, I installed the slapd package on Hardy box, one that had never had any openldap packages installed. I let the package installation script create the default slapd.conf file there, and then

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
A few other notes: Bug #526230 On upgrade modifies multiple olcAccess definition are not handled correclty is definitely related to this one. However, #526230 deals with a Jaunty-Karmic upgrade, and specifically mentions that the pre-upgrade configuration had multiple oldAccess lines (so

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
I found that running slaptest -F /etc/ldap/slapd.d generated that same error message. To investigate further, I used the command line slaptest -F /etc/ldap/slapd.d -d 1 21 | grep \.ldif to track down the full path of the file that contained the offending line, which turned out to be

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
I did some additional testing and believe that all Hardy - Lucid upgrades will hit this bug. Specifically, I installed the slapd package on Hardy box, one that had never had any openldap packages installed. I let the package installation script create the default slapd.conf file there, and then

[Bug 538516] Re: slapd package configuration aborts due to ordered_value_sort failed on attr olcAccess error during Hardy - Lucid upgrade

2010-03-13 Thread Nathan Stratton Treadway
A few other notes: Bug #526230 On upgrade modifies multiple olcAccess definition are not handled correclty is definitely related to this one. However, #526230 deals with a Jaunty-Karmic upgrade, and specifically mentions that the pre-upgrade configuration had multiple oldAccess lines (so