Lines Matching refs:connection
51 def get_token_for(connection, dn, typ="totp"):
52 result = connection.search_s(dn, ldap.SCOPE_BASE)
58 result = connection.search_s(tokendn, ldap.SCOPE_BASE)
77 connection = LDAPObject(uri)
80 connection.bind_s(managerdn, passwd)
88 dn, token_entry = get_token_for(connection, babsdn)
91 result = connection.search_s(paramsdn, ldap.SCOPE_BASE)
130 dn, token_entry = get_token_for(connection, babsdn)
137 connection.modify_s(dn, [(ldap.MOD_REPLACE, 'oathTOTPLastTimeStep', [])])
155 connection.modify_s(dn, [(ldap.MOD_REPLACE, 'oathTOTPLastTimeStep', [])])