Greenbone Vulnerability Management Libraries  11.0.1
ldaputils.h File Reference

Header for LDAP-Connect Authentication module. More...

#include <glib.h>
Include dependency graph for ldaputils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ldap_auth_info
 Schema (dn) and info to use for a basic ldap authentication. More...
 

Typedefs

typedef struct ldap_auth_infoldap_auth_info_t
 Authentication schema and address type. More...
 

Functions

int ldap_connect_authenticate (const gchar *, const gchar *, void *, const gchar *)
 Dummy function for Manager. More...
 
void ldap_auth_info_free (ldap_auth_info_t)
 Dummy function for Manager. More...
 
ldap_auth_info_t ldap_auth_info_new (const gchar *, const gchar *, gboolean)
 Dummy function for manager. More...
 

Detailed Description

Header for LDAP-Connect Authentication module.

Definition in file ldaputils.h.

Typedef Documentation

◆ ldap_auth_info_t

Authentication schema and address type.

Definition at line 31 of file ldaputils.h.

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.

Definition at line 509 of file ldaputils.c.

510 {
511  (void) info;
512 }

◆ 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.

Definition at line 472 of file ldaputils.c.

474 {
475  (void) ldap_host;
476  (void) auth_dn;
477  (void) allow_plaintext;
478  return NULL;
479 }

◆ 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.

Definition at line 492 of file ldaputils.c.

495 {
496  (void) username;
497  (void) password;
498  (void) ldap_auth_info;
499  (void) cacert;
500  return -1;
501 }
ldap_auth_info
Schema (dn) and info to use for a basic ldap authentication.
Definition: ldaputils.h:39