summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index a0f0d58286..3a3116912c 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -374,6 +374,15 @@ return acl_get_perm_np(permset_d, perm);
msg="Checking whether Linux readahead is available")
conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True)
+ conf.CHECK_CODE('''
+ #include <sys/types.h>
+ #include <sys/socket.h>],
+ struct ucred cred;
+ socklen_t cred_len;
+ int ret = getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len);''',
+ 'HAVE_PEERCRED',
+ msg="Checking whether we can use SO_PEERCRED to get socket credentials")
+
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam pdb_ldap
auth_sam auth_unix auth_winbind auth_wbc auth_server
auth_domain auth_builtin auth_netlogond vfs_default