Set controls default value if not set
Pixis authored 3 years ago
GitHub committed 3 years ago
908 | 908 | :return: A tuple of (True, None) on success or (False, Exception) on error. |
909 | 909 | :rtype: (:class:`bool`, :class:`Exception`) |
910 | 910 | """ |
911 | if controls is None: | |
912 | controls = [] | |
911 | 913 | controls_conv = [] |
912 | 914 | for control in controls: |
913 | 915 | controls_conv.append(Control(control)) |
1072 | 1074 | # logger.debug('Polling AD for all user objects') |
1073 | 1075 | # ldap_filter = r'(sAMAccountType=805306368)' |
1074 | 1076 | # |
1075 | # return self.pagedsearch(ldap_filter, MSADUser_ATTRS)⏎ | |
1077 | # return self.pagedsearch(ldap_filter, MSADUser_ATTRS) |