Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/common.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-01-29 21:15:56 +0100
committerArthur de Jong <arthur@arthurdejong.org>2011-01-29 21:15:56 +0100
commit16444349cb9bef2d189607ddfc560f636a77acbb (patch)
treeb22ffe30bb9e3798b221584e74ee3719e3bf5ba5 /nslcd/common.h
parentd492b570f93108c65088462fea7a6a87d091f953 (diff)
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
Diffstat (limited to 'nslcd/common.h')
-rw-r--r--nslcd/common.h5
1 files changed, 5 insertions, 0 deletions
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.