![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 318](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642318.webp)
Functions for Managing Entries
318
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Syntax
#include “slapi-plugin.h”
int slapi_entry_attr_find( const Slapi_Entry *e, const char *type,
Slapi_Attr **attr );
Parameters
This function takes the following parameters:
Returns
This function returns one of the following values:
•
0
if the entry contains the specified attribute.
•
-1
if the entry does not contain the specified attribute.
Memory Concerns
Do not free the returned
attr
. It is a pointer to the internal entry data structure. It
is usually wise to make a copy of the returned
attr
, using
slapi_attr_dup()
, to
avoid dangling pointers if the entry is freed while the pointer to
attr
is still being
used.
See Also
slapi_attr_dup()
slapi_entry_attr_get_charptr()
Gets the first value of an attribute, of an entry, as a string.
Syntax
#include “slapi-plugin.h”
char *slapi_entry_attr_get_charptr(const Slapi_Entry* e,
char *type);
e
Entry that you want to check.
type
Name of the attribute that you want to check.
attr
Pointer to the attribute, if the attribute is in the entry.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...