mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
auth: Move authn_policy code into auth subsystem
This ensures that this code will still be usable by other libraries and subsystems if Samba is built with ‘--without-ad-dc’. We also drop dependencies on ‘ldb’ and ‘talloc’ that we shouldn’t have needed anyway. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9b0a71bd30
commit
b3a8565582
@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
#include "lib/replace/replace.h"
|
||||
#include "source4/kdc/authn_policy.h"
|
||||
#include "source4/kdc/authn_policy_impl.h"
|
||||
#include "auth/authn_policy.h"
|
||||
#include "auth/authn_policy_impl.h"
|
||||
|
||||
bool authn_policy_is_enforced(const struct authn_policy *policy)
|
||||
{
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "lib/replace/replace.h"
|
||||
|
||||
#include "source4/kdc/authn_policy.h"
|
||||
#include "auth/authn_policy.h"
|
||||
#include "lib/util/data_blob.h"
|
||||
#include "libcli/util/ntstatus.h"
|
||||
|
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('authn_policy',
|
||||
source='authn_policy.c',
|
||||
deps='samba-util')
|
||||
|
||||
bld.SAMBA_LIBRARY('common_auth',
|
||||
source='''auth_sam_reply.c
|
||||
wbc_auth_util.c
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "lib/replace/replace.h"
|
||||
#include "source4/kdc/authn_policy_util.h"
|
||||
#include "source4/kdc/authn_policy_impl.h"
|
||||
#include "auth/authn_policy_impl.h"
|
||||
#include "lib/util/debug.h"
|
||||
#include "lib/util/samba_util.h"
|
||||
#include "libcli/security/security.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define KDC_AUTHN_POLICY_UTIL_H
|
||||
|
||||
#include "lib/replace/replace.h"
|
||||
#include "source4/kdc/authn_policy.h"
|
||||
#include "auth/authn_policy.h"
|
||||
#include <talloc.h>
|
||||
|
||||
struct ldb_context;
|
||||
|
@ -145,12 +145,6 @@ bld.SAMBA_LIBRARY('ad_claims',
|
||||
private_library=True,
|
||||
)
|
||||
|
||||
bld.SAMBA_LIBRARY('authn_policy',
|
||||
source='authn_policy.c',
|
||||
deps='ldb talloc samba-util',
|
||||
private_library=True,
|
||||
)
|
||||
|
||||
bld.SAMBA_LIBRARY('authn_policy_util',
|
||||
source='authn_policy_util.c',
|
||||
deps='authn_policy samdb dsdb-module',
|
||||
|
Loading…
x
Reference in New Issue
Block a user