diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-06-10 16:38:29 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2015-10-29 05:08:15 +0100 |
| commit | 704fd83bcf5bba3bf5e67ea8060aff148aacea32 (patch) | |
| tree | 8725963ca8545eb07d27929ddd20ce84cde30785 /python | |
| parent | 4bf95b6b32dfc8ecc0aac92971e173b826e2d4ac (diff) | |
| download | samba-704fd83bcf5bba3bf5e67ea8060aff148aacea32.tar.gz samba-704fd83bcf5bba3bf5e67ea8060aff148aacea32.tar.bz2 samba-704fd83bcf5bba3bf5e67ea8060aff148aacea32.zip | |
KCC: correctly use dsa.new_connection() system_flags argument
The dsa.system_flags attribute is important and gets saved in the
database, but was never getting altered because we were setting dsa.flags
instead.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/kcc/kcc_utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/samba/kcc/kcc_utils.py b/python/samba/kcc/kcc_utils.py index 3b5b0cce55d..1dfd6e962ef 100644 --- a/python/samba/kcc/kcc_utils.py +++ b/python/samba/kcc/kcc_utils.py @@ -769,7 +769,8 @@ class DirectoryServiceAgent(object): '''Debug dump string output of connect table''' return '\n'.join(str(x) for x in self.connect_table) - def new_connection(self, options, flags, transport, from_dnstr, sched): + def new_connection(self, options, system_flags, transport, from_dnstr, + sched): """Set up a new connection for the DSA based on input parameters. Connection will be added to the DSA connect_table and will be marked as "to be added" pending @@ -782,7 +783,7 @@ class DirectoryServiceAgent(object): connect.enabled = True connect.from_dnstr = from_dnstr connect.options = options - connect.flags = flags + connect.system_flags = system_flags if transport is not None: connect.transport_dnstr = transport.dnstr |
