OpenVAS Libraries  9.0.3
ldap_connect_auth.c File Reference
Include dependency graph for ldap_connect_auth.c:

Go to the source code of this file.

Functions

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

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 516 of file ldap_connect_auth.c.

517 {
518  (void) info;
519 }

◆ 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 479 of file ldap_connect_auth.c.

481 {
482  (void) ldap_host;
483  (void) auth_dn;
484  (void) allow_plaintext;
485  return NULL;
486 }

◆ 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 499 of file ldap_connect_auth.c.

502 {
503  (void) username;
504  (void) password;
505  (void) ldap_auth_info;
506  (void) cacert;
507  return -1;
508 }
Schema (dn) and info to use for a basic ldap authentication.