[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Operations error: "modifications require authentication" with OpenLDAP 2.1.x
- To: openldap-software@OpenLDAP.org
- Subject: Operations error: "modifications require authentication" with OpenLDAP 2.1.x
- From: Michael Ströder <michael@stroeder.com>
- Date: Fri, 26 Jul 2002 02:22:36 +0200
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
HI!
What's the rationale behind changing the error code returned if a
write access to the directory with anonymous bind fails?
In OpenLDAP 2.0.x and any other LDAP server I know of
LDAP_INSUFFICIENT_ACCESS is returned if the add or modify
operation fails. Some LDAP servers return a nice info field. This
separate error code is very handy since the application can catch
this particular error and ask the user to (re-)login (very handy
e.g. in web2ldap ;-).
But OpenLDAP 2.1.x returns LDAP_OPERATIONS_ERROR with info field
saying "modifications require authentication". This is bad since
LDAP_OPERATIONS_ERROR can be anything and an application should
not rely on the free text info message. With this behaviour the
application is not able to guide the user and present a login form.
Ciao, Michael.