Fixed index bug on ldap_source.py.