mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
libgpo: Always check for ldap_server argument
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
964bc8d19a
commit
a194fb3821
@ -192,9 +192,11 @@ static int py_ads_init(ADS *self, PyObject *args, PyObject *kwds)
|
||||
} else {
|
||||
realm = lp_realm();
|
||||
workgroup = lp_workgroup();
|
||||
if (!ldap_server) return -1;
|
||||
}
|
||||
|
||||
if (ldap_server == NULL) {
|
||||
return -1;
|
||||
}
|
||||
if ( !(self->ads_ptr = ads_init(realm, workgroup, ldap_server)) )
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user