0

Google API を使用して Active Directory 2008 と通信しています。tutorial1 のサンプル コードは次のとおりです。

from ad import Client, Creds, activate

  domain = 'freeadi.org'
  user = 'Administrator'
  password = 'Pass123'

  creds = Creds(domain)
  creds.acquire(user, password)
  activate(creds)

  client = Client(domain)
  users = client.search('(objectClass=user)')
  for dn,attrs in users:
    name = attrs['sAMAccountName'][0]
    print '-> %s' % name

しかし、私は次のエラーが発生しています。

ldap.LOCAL_ERROR: {'info': 'SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server not found in Kerberos database)', 'desc': 'Local error'}. これはhttp://code.google.com/p/python-ad/wiki/TutorialOneのサンプル コードです。ユーザー名とパスワードのアカウントを必要に応じて変更しました。

こんにちは、返信ありがとうございます。私は centrifydc で私の広告に参加しています。しかし、コードを実行すると、ログファイルに奇妙なログが表示されますが、このトピックは初めてなので、まったくわかりません。これが私のログファイルの出力です:

Jun 28 19:22:02 sdahal1 sudo: pam_unix(sudo:session): session closed for user root
Jun 28 19:24:24 sdahal1 sshd13724?: Connection closed by 192.168.0.113 preauth?
Jun 28 19:24:54 sdahal1 adclient998?: INFO <fd:19 PAMVerifyPassword> audit User 'sadahal' authenticated based on Kerberos exchange to AD
Jun 28 19:24:54 sdahal1 adclient998?: INFO <fd:19 PAMIsUserAllowedAccess> audit User 'sadahal' is authorized
Jun 28 19:27:56 sdahal1 sudo: pam_unix(sudo:session): session closed for user root
Jun 28 19:28:04 sdahal1 python: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server not found in Kerberos database)
Jun 28 19:28:17 sdahal1 adclient998?: INFO <fd:19 PAMVerifyPassword> audit User 'sadahal' authenticated based on Kerberos exchange to AD
Jun 28 19:28:17 sdahal1 adclient998?: INFO <fd:23 PAMIsUserAllowedAccess> audit User 'sadahal' is authorized
Jun 28 19:28:17 sdahal1 sudo:
4

0 に答える 0