[Oz] LDAP interface design questions
Garibald Hennes
suegar at gmx.de
Wed May 3 12:54:39 CEST 2000
Well, first things first:
congrats to the oz-team for a well-designed c++ interface!
Without much c++ experience, without any experiences with the oz-c++
interface, but with the slight help of gdbm.cc :) I wrote - in under
one day - a module which can do ldap_init, ldap_bind andldap_unbind.
Nice.
But, before I write more, I have some questions:
The ldap_ family of calls all use some c-structs to return persistant
data (connection, query results) to be used in following calls. For the
connection I followed the solution found in gdbm.cc: I made a small
oz_extension around the c-struct and pass that around.
Now I would have to make two more such extensions for traversing the
query results, and before I do that, I would like to know if there is
another way to do this.
The calls work like this: ldap_search returns a LDAPMessage**, which can
be traversed by ldap_next_entry. Which, in turn, returns an
LDAPMessage*, which can be traversed by ldap_next_attribute, which
returns a BerElement**, a pointer into the entry to note the current
attribute.
Since a search returns possibly thousands of entries, with
possibly lots of attributes each, I cannot simply put all entries in one
call into an oz-record. So I need three more oz_extensions, right?? Or
is there another way to solve this??
One more question:
why does the browser show <UNKNOWN TERM> when System.show shows <ldap
localhost: 389>?? Couldn't (shouldn't) this be the same? This is Mozart
1.1.0 on FreeBSD/i386 4.0-stable SMP.
Thanks for any hint.
/ Mathias
--
virtual earth
Mathias Picker
Geschäftsführer Gesellschaft für Wissens re/prä sentation mbH
Mathias.Picker at virtual-earth.de
Fon +49 89 / 540 7425-1
Fax +49 89 / 540 7425-9
--
Sent through GMX FreeMail - http://www.gmx.net
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list