mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase
This option has default value False, and was actually not passed down from cli to LDAPBase. However, LDAPBase.__init__ has default value True for it. After the change, a few tests using ldapcmp are affected. Add --skip-missing-dn explicitly to keep the behavior consistent, otherwise test will fail. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
@ -949,13 +949,13 @@ class cmd_ldapcmp(Command):
|
||||
con1 = LDAPBase(URL1, creds, lp,
|
||||
two=two, quiet=quiet, descriptor=descriptor, sort_aces=sort_aces,
|
||||
verbose=verbose, view=view, base=base, scope=scope,
|
||||
outf=self.outf, errf=self.errf)
|
||||
outf=self.outf, errf=self.errf, skip_missing_dn=skip_missing_dn)
|
||||
assert len(con1.base_dn) > 0
|
||||
|
||||
con2 = LDAPBase(URL2, creds2, lp,
|
||||
two=two, quiet=quiet, descriptor=descriptor, sort_aces=sort_aces,
|
||||
verbose=verbose, view=view, base=base2, scope=scope,
|
||||
outf=self.outf, errf=self.errf)
|
||||
outf=self.outf, errf=self.errf, skip_missing_dn=skip_missing_dn)
|
||||
assert len(con2.base_dn) > 0
|
||||
|
||||
filter_list = filter.split(",")
|
||||
|
Reference in New Issue
Block a user