Saturday, May 14, 2016

Re: iterations of a list


On May 14, 2016 1:19 PM, "Shu Latif" <shulatif@gmail.com> wrote:
>
> It's this line in names(ftes)
>
>     results = conn.search_s("o=domain.com", ldap.SCOPE_SUBTREE, "uid=" + ftes, attrlist=['gecos'])
>
getFTE() can return with a string or with a list. You are using that value for ftes when calling names(ftes).

The line for your LDAP search is only expecting a string as a value for ftes, so it will bomb every time getFTE() returns a list.

-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciU-wp7N1rQq%3D39hg4m20ri6U5Am7SpSyZnRTZUARURSFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment