Re: How to apply a DA Patch?

Mike Jackson <[email protected]> Sun, 19 Dec 2004 22:50:40 +0200
Newsgroups gmane.network.directoryadmin
Message-ID <[email protected]>
Nathan Sutton wrote:

> In addition to this I have had to allow ldap v2 binds. What I am trying 
> to do is install a patch which I have downloaded. The patch is to fix 
> bug 780434.

Hi,
  I wrote that patch, and I mistakenly mislabeled the description. It does not fix bug 780434 
(completely), but it does fix a big problem: LDAPv3 binds did not work before and now they do.

  You can apply it by changing into the directory administrator source tree and then:

$ patch < /path/to/ldapversion.patch

  After that, just give the normal configure, make, and make install.


> Q1) Does anyone know a reason for DA to crash when modifying an existing 
> LDAP user?

I haven't looked into this yet, but I assume that DA expects more object classes and attributes 
than your entries have. If your objects are schema compliant, then this also needs a patch.


> Q2) Does anyone know a way to determine / work around the objectclass 
> violation?

Yes, use an old version of OpenLDAP which does not enforce structural integrity. I would also write 
a patch for this, but I am waiting to see if my first patch is accepted and a new build is 
released. I obviously don't want to waste time submitting patches to a dead project. There are some 
12 patches stacked up and there hasn't been a new release in more than a year... I'm considering 
forking this codebase into a new project if I don't see a release in the next 2-3 days. Anybody 
interested in joining?


> NB: I noticed a thread which recommended disabling schema compliance. I 
> am not sure if this is still the recommended approach.

This is never, never, never a good approach. It's the broken application(s) which should be fixed.

BR,
--
mike


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/