MCPcopy Index your code
hub / github.com/bugy/script-server / _connect

Method _connect

src/auth/auth_ldap.py:158–168  ·  view source on GitHub ↗
(self, full_username, password)

Source from the content-addressed store, hash-verified

156 raise auth_base.AuthFailureError(error)
157
158 def _connect(self, full_username, password):
159 connection = Connection(
160 self.url,
161 user=full_username,
162 password=password,
163 authentication=SIMPLE,
164 read_only=True,
165 version=self.version
166 )
167 connection.bind()
168 return connection
169
170 def _get_groups(self, user):
171 groups = self._user_groups.get(user)

Callers 1

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected