git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecaa43e
)
s4:s3compat provide replacement functions: lp_security() and lp_passdb_backend()
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 23 May 2010 15:14:39 +0000
(
01:14
+1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 3 Jun 2010 11:57:32 +0000
(21:57 +1000)
source4/s3compat/s3compat_names.c
patch
|
blob
|
history
diff --git
a/source4/s3compat/s3compat_names.c
b/source4/s3compat/s3compat_names.c
index 339a07082fd8d8e4674c6f257a88da0a987d5b65..32ca3cd1acbeae3c3a9e9f2d5fd3133dc0748098 100644
(file)
--- a/
source4/s3compat/s3compat_names.c
+++ b/
source4/s3compat/s3compat_names.c
@@
-60,3
+60,21
@@
void gfree_netbios_names(void)
{
return;
}
+
+int lp_security(void)
+{
+ switch (lp_server_role()) {
+ case ROLE_DOMAIN_MEMBER:
+ case ROLE_DOMAIN_BDC:
+ case ROLE_DOMAIN_PDC:
+ return SEC_ADS;
+ case ROLE_STANDALONE:
+ default:
+ return SEC_USER;
+ }
+}
+
+const char *lp_passdb_backend(void)
+{
+ return "samba4";
+}