Commit Graph

13 Commits

Author SHA1 Message Date
eknauel e236fbaec4 A try to fix automatic memory handling for LDAP structures.
- free ldap-messages of type result

- free ldap-messages of type entry if and only if ldap_first_entry()
  converted from a result into an entry

- don't free ldap-messages of type entry

- entries depend on results, so don't free result before entries
  derived from it
2004-02-14 15:37:55 +00:00
eknauel 55f238280a many GC-related changes. Use weak table to avoid creating a second
scheme object for the same ldap object.  Works partially.
2004-02-13 17:04:30 +00:00
eknauel c015769f74 The big "ldap-session as fluid"-surgery 2004-02-13 10:06:15 +00:00
eknauel fcf3a94b1c (ldap-get-values): if ldap_get_values() returns NULL, that's not
necessarily an error
(ldap-entry-dn): renamed ldap-message-dn to ldap-entry-dn
2004-02-12 15:49:18 +00:00
eknauel a312de7a51 * scheme/ldap.scm (ldap-get-values): unpack ldap-entry
(ldap-count-entries): ditto
(ldap-first-entry): ditto
(ldap-next-entry): ditto
2004-02-12 14:29:02 +00:00
eknauel e27edaaed3 * scheme/ldap.scm (ldap-search): unpack finite type before calling
C code
(ldap-search): make return value of type ldap-entry
(ldap-get-error-return-object): convert code to finite type
(ldap-first-attribute): unwrap ldap-entry
(ldap-next-attribute session): unwrap ldap-entry

* scheme/ldap.scm (ldap-init): Set initial value for
ldap-session-messages
2004-02-12 12:44:46 +00:00
eknauel f3a509e5a7 * scheme/ldap.scm (ldap-init): make port optional argument,
accept list of hosts as argument.
(ldap-simple-bind-as-nobody): new function
2004-02-11 16:16:03 +00:00
eknauel 02f0884023 Lots of functions missing in various interfaces 2004-02-10 15:28:34 +00:00
eknauel feae1fa4a9 Lots of changes to fix structure ldap-types and ldap-condtions 2004-01-15 16:34:15 +00:00
eknauel e8d54a6390 + error handling 2004-01-08 07:45:28 +00:00
eknauel 273b96373b + make bindings fit to API described as in the LDAP C API draft
+ use automake for building an external module
+ tools for importing c constants
+ numerous changes
2003-12-31 15:40:26 +00:00
eknauel 38f6c8515f Bindings for ldap_search and stuff like that 2003-11-16 08:35:08 +00:00
eknauel a25a3daae0 *** empty log message *** 2003-10-28 15:27:54 +00:00