/builddir/build/BUILD/gfal2-2.0.0/src/common/mds/gfal_common_mds_ldap_internal.c File Reference

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)


Detailed Description

file for the internal ldap query by gfal, without is interface

Author:
Adrien Devresse
Date:
05/09/2011

Function Documentation

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

Parameters:
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.
Returns:
: number of endpoints set or -1 if error

int gfal_mds_get_ldapuri ( char *  buff,
size_t  s_buff,
GError **  err 
)

get the current ldap URI

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

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


Generated on Wed May 16 16:46:34 2012 for CERN org.glite.Gfal by  doxygen 1.4.7