diff options
Diffstat (limited to 'nslcd/myldap.h')
-rw-r--r-- | nslcd/myldap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/myldap.h b/nslcd/myldap.h index c7358af..e54ae52 100644 --- a/nslcd/myldap.h +++ b/nslcd/myldap.h @@ -68,9 +68,9 @@ typedef struct myldap_entry MYLDAP_ENTRY; uses the configuration to find the URLs to attempt connections to. */ MUST_USE MYLDAP_SESSION *myldap_create_session(void); -/* Set alternative credentials for the session. */ -void myldap_set_credentials(MYLDAP_SESSION *session, const char *dn, - const char *password); +/* Set alternative credentials for the session. Returns 0 on success. */ +MUST_USE int myldap_set_credentials(MYLDAP_SESSION *session, const char *dn, + const char *password); /* Get bind ppolicy results from the last bind operation. This function returns a NSLCD_PAM_* code and optional message. */ |