From 16444349cb9bef2d189607ddfc560f636a77acbb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 29 Jan 2011 20:15:56 +0000 Subject: implement a fqdn variable that can be used inside pam_authz_search filters git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1367 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nslcd/common.h') diff --git a/nslcd/common.h b/nslcd/common.h index 5bd98ea..0a89083 100644 --- a/nslcd/common.h +++ b/nslcd/common.h @@ -54,6 +54,11 @@ int mysnprintf(char *buffer,size_t buflen,const char *format, ...) LIKE_PRINTF(3,4); +/* return the fully qualified domain name of the current host + the returned value does not need to be freed but is re-used for every + call */ +MUST_USE const char *getfqdn(void); + /* This tries to get the user password attribute from the entry. It will try to return an encrypted password as it is used in /etc/passwd, /etc/group or /etc/shadow depending upon what is in the directory. -- cgit v1.2.3