title: ldapsearch works but python-ldap doesn't
body: <p>The following works and returns a list of all users</p>
  
  <pre><code>ldapsearch -x -b "ou=lunchbox,dc=office,dc=lbox,dc=com" -D "OFFICE\Administrator" -h ad.office.lbox.com -p 389 -W "(&amp;(objectcategory=person)(objectclass=user))"
  </code></pre>
  
  <p>I'm trying to do the same in Python and I'm getting <code>Invalid credentials</code></p>
  
  <pre><code>#!/usr/bin/env python
  
  import ldap
  
  dn = "cn=Administrator,dc=office,dc=lbox,dc=com"
  pw = "**password**"
  
  con = ldap.initialize('ldap://ad.office.lbox.com')
  con.simple_bind_s( dn, pw )
  
  base_dn = 'ou=lunchbox,dc=office,dc=lbox,dc=com'
  filter = '(objectclass=person)'
  attrs = ['sn']
  
  con.search_s( base_dn, ldap.SCOPE_SUBTREE, filter, attrs )
  </code></pre>
  
  <p>Any suggestions to make this work would be great. I'm trying to learn <code>python-ldap</code> Thanks</p>
  
  <p>EDIT</p>
  
  <p>This is the full error I get:</p>
  
  <pre><code>`ldap.INVALID_CREDENTIALS: {'info': '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1', 'desc': 'Invalid credentials'}`
  </code></pre>
  
  <p>The <code>LDAP</code> server is an Active Directory on Windows Server 2008 R2</p>