[Date Prev][Date Next]
JLdap text=critical extension is unavailable & OpenLdap
Hi, I hope I won't be out of topic ...
I have a Openldap server (Version 2.0.11-Release 5)
I use the jldap implementation to connect to this server.
My query is pretty simple :
Only make a search (no authentification, public result)
I've downloaded the java classes on the Openldap site (Thanks Novell, yes my
code is more readable and the load is two times quicker than when using jndi
only cause of substring and stringtokeniser)
I've used samples/SortControl.java example.
because I want to 'server sort' my result.
LDAPSortControl sort = new LDAPSortControl( keys, true );
The jsp page (I use jsp with gnujsp) prints no result.
LDAPSortControl sort = new LDAPSortControl( keys, false );
The jsp page shows me all my records but unsorted...
I've take a look in slapd.log file :
Feb 7 14:40:37 doc slapd: daemon: conn=67 fd=9 connection from
IP=10.0.0.10:1815 (IP=0.0.0.0:34049) accepted.
Feb 7 14:40:37 doc slapd: conn=67 op=0 RESULT tag=101 err=12
text=critical extension is unavailable
Feb 7 14:40:37 doc slapd: do_search: get_ctrls failed
Feb 7 14:40:37 doc slapd: conn=-1 fd=9 closed
So my server don't accept critical extension ? Huh !
I've tried 'man ldapsearch'
---> ldapsearch -b "dc=myorg,dc=fr" "ou=people" -MM -S "givenname"
(-MM for control critical) and it worked !!!
(sorted by givenname)
What's going on ?
Is there anyone here who use jldap with LdapSortControl ?