CERN org.glite.Gfal
2.0.1
|
file for the internal ldap query by gfal, without is interface More...
#include <errno.h>
#include <stdlib.h>
#include <glib.h>
#include <string.h>
#include <lber.h>
#include <ldap.h>
#include "gfal_common_mds_ldap_internal.h"
#include "gfal_common_mds_ldap_internal_layer.h"
#include "../gfal_common_errverbose.h"
Functions | |
LDAP * | gfal_mds_ldap_connect (const char *uri, GError **err) |
int | gfal_mds_ldap_search (LDAP *ld, const char *basedn, const char *filter, char **tabattr, LDAPMessage **res, GError **err) |
int | gfal_mds_get_srm_types_endpoint (LDAP *ld, LDAPMessage *result, gfal_mds_endpoint *endpoints, size_t s_endpoint, GError **err) |
int | gfal_mds_get_ldapuri (char *buff, size_t s_buff, GError **err) |
void | gfal_mds_ldap_disconnect (LDAP *ld) |
int | gfal_mds_bdii_get_srm_endpoint (const char *base_url, gfal_mds_endpoint *endpoints, size_t s_endpoint, GError **err) |
file for the internal ldap query by gfal, without is interface
int gfal_mds_bdii_get_srm_endpoint | ( | const char * | base_url, |
gfal_mds_endpoint * | endpoints, | ||
size_t | s_endpoint, | ||
GError ** | err | ||
) |
resolve the SRM endpoint associated with a given base_url with the bdii
base_url | : basic url to resolve |
endpoints | : table of gfal_mds_endpoint to set with a size of s_endpoint |
s_endpoint | : maximum number of endpoints to set |
err,: | Gerror system for the report of the errors. |
References gfal_print_verbose(), gfal_mds_get_ldapuri(), gfal_mds_ldap_search(), and gfal_mds_get_srm_types_endpoint().
int gfal_mds_get_ldapuri | ( | char * | buff, |
size_t | s_buff, | ||
GError ** | err | ||
) |
get the current ldap URI
Referenced by gfal_mds_bdii_get_srm_endpoint().
int gfal_mds_get_srm_types_endpoint | ( | LDAP * | ld, |
LDAPMessage * | result, | ||
gfal_mds_endpoint * | endpoints, | ||
size_t | s_endpoint, | ||
GError ** | err | ||
) |
parse the result of a query to get the srm endpoint
Referenced by gfal_mds_bdii_get_srm_endpoint().
int gfal_mds_ldap_search | ( | LDAP * | ld, |
const char * | basedn, | ||
const char * | filter, | ||
char ** | tabattr, | ||
LDAPMessage ** | res, | ||
GError ** | err | ||
) |
Execute a ldap query on a connected bdii
Referenced by gfal_mds_bdii_get_srm_endpoint().