Close

LDAP – TNS service name package v2.3

I’ve released version 2.3 of my service name maintenance package for LDAP servers implementing the OID schema.


I’ve exposed the get_entry function both as a stand alone function the opens, reads, and closes a connection to the ldap server, and as an API accepting an already established connection and using it.

Along with the function the formerly internal entry_array and entry_record types are now exposed in the package specification. Using these types instead of the text based list_oid, eliminates the need to parse out the individual fields from the text. Reference entries are also clearly identify with a flag in the record rather than parsing the text and assuming reference if the text did not look like a TNS service description.

The text-based list_oid function was also enhanced with an additional optional parameter to return text in json or xml formats in stead of the default colon-delimited form.

Last, both list_oid and get_entries functions have cleaner handling of reference entries, cleaning up variable usage within loops.

Source code for version 2.3 of the package can be downloaded from my dropbox here.

Leave a Reply