convert shiny ldap authentication to flask ldap authentication
问题 We have shiny application which use ldap authentication from Microsoft Active Directory, which is as follows auth_active_dir ldap://52.324.23.53/dc=x,dc=y,dc=z x.y.z{ #user_bind_template "{username}"; } This code works properly. I have flask app. I want same LDAP authentication for flask app using following code import ldap url = 'ldap://52.324.23.53' l = ldap.initialize(url) l.set_option(ldap.OPT_REFERRALS, 0) l.simple_bind_s('MyUserName', 'MyAnswer') However following is error code, when I