summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-11-10 13:37:54 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-11-17 00:34:08 +0100
commitf099feaa01b6548cb60cb9d7d50b1f196b1af878 (patch)
tree47e86ced021fa016fd3fc2ca4891841aa6454d7e /source3/nmbd
parentdf9a1ea6cb18d4e701471ddd0144dbc970c4eb88 (diff)
downloadsamba-f099feaa01b6548cb60cb9d7d50b1f196b1af878.tar.gz
samba-f099feaa01b6548cb60cb9d7d50b1f196b1af878.tar.bz2
samba-f099feaa01b6548cb60cb9d7d50b1f196b1af878.zip
s3-param remove lp_domain_logons(), always use IS_DC
This makes the code internally consistant. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_become_dmb.c2
-rw-r--r--source3/nmbd/nmbd_processlogon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_become_dmb.c b/source3/nmbd/nmbd_become_dmb.c
index 276c381f6c..a3b3d585ce 100644
--- a/source3/nmbd/nmbd_become_dmb.c
+++ b/source3/nmbd/nmbd_become_dmb.c
@@ -375,7 +375,7 @@ void add_domain_names(time_t t)
lastrun = t;
/* Do the "internet group" - <1c> names. */
- if (lp_domain_logons())
+ if (IS_DC)
add_logon_names();
/* Do the domain master names. */
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c
index 43ffd726c6..4fe5d0ee87 100644
--- a/source3/nmbd/nmbd_processlogon.c
+++ b/source3/nmbd/nmbd_processlogon.c
@@ -329,7 +329,7 @@ void process_logon_packet(struct packet_struct *p, const char *buf,int len,
}
ip = ((const struct sockaddr_in *)pss)->sin_addr;
- if (!lp_domain_logons()) {
+ if (!IS_DC) {
DEBUG(5,("process_logon_packet: Logon packet received from IP %s and domain \
logons are not enabled.\n", inet_ntoa(p->ip) ));
return;