python-ldap
LDAP 접속 인증 import ldap ld = ldap.initialize('ldap://ldapaddress:port') ld.set_option(ldap.OPT_REFERRALS, 0) ld.simple_bind_s('계정명속성이름=Accountname','password') 값비교 # 기본적인 비교 ld.compare_s('uid=UserID,ou=user,dc=example,dc=com', '비교할속성이름', '기대값') # 1 = same, 0 = not same ld.compare_s('uid=UserID,ou=user,dc=example,dc=com', '비밀번호속성이름', '사용자가입력한비밀번호') 검색 l.search_s('ou=user,dc=example,dc=com', ldap.S..