Greenbone Vulnerability Management Libraries  21.4.2
Functions
ldaputils.c File Reference

LDAP-connect Authentication module. More...

#include "ldaputils.h"

Functions

int ldap_enable_debug ()
 Dummy function for enabling LDAP debugging for manager. More...
 
ldap_auth_info_t ldap_auth_info_new (const gchar *ldap_host, const gchar *auth_dn, gboolean allow_plaintext)
 Dummy function for manager. More...
 
int ldap_connect_authenticate (const gchar *username, const gchar *password, void *ldap_auth_info, const gchar *cacert)
 Dummy function for Manager. More...
 
void ldap_auth_info_free (ldap_auth_info_t info)
 Dummy function for Manager. More...
 

Detailed Description

LDAP-connect Authentication module.

Function Documentation

◆ ldap_auth_info_free()

void ldap_auth_info_free ( ldap_auth_info_t  info)

Dummy function for Manager.

Parameters
infoldap_auth_schema_t to free, can be NULL.

◆ ldap_auth_info_new()

ldap_auth_info_t ldap_auth_info_new ( const gchar *  ldap_host,
const gchar *  auth_dn,
gboolean  allow_plaintext 
)

Dummy function for manager.

Parameters
ldap_hostHost to authenticate against. Might not be NULL, but empty.
auth_dnDN where the actual user name is to be inserted at "%s", e.g. uid=s,cn=users. Might not be NULL, but empty, has to contain a single s.
allow_plaintextIf FALSE, require StartTLS initialization to succeed.
Returns
NULL.

◆ ldap_connect_authenticate()

int ldap_connect_authenticate ( const gchar *  username,
const gchar *  password,
void *  ldap_auth_info,
const gchar *  cacert 
)

Dummy function for Manager.

Parameters
ldap_auth_infoSchema and address to use.
usernameUsername to authenticate.
passwordPassword to use.
cacertCA Certificate for LDAP_OPT_X_TLS_CACERTFILE, or NULL.
Returns
-1.

◆ ldap_enable_debug()

int ldap_enable_debug ( )

Dummy function for enabling LDAP debugging for manager.

Returns
Always -1 for failure.