Bug 4871

Summary: Backtrace in tl-ldap-certalias
Product: ThinLinc Reporter: Henrik Andersson <hean01>
Component: MiscAssignee: Karl Mikaelsson <derfian>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 4.1.0   
Target Milestone: MediumPrio   
Hardware: PC   
OS: Unknown   
Acceptance Criteria:

Description Henrik Andersson cendio 2013-10-24 15:14:18 CEST
When testing tl-ldap-certalias against Active directory at customers site I stumble upon this backtrace:

tl-ldap-certalias: DEBUG: Found user CN=XXX,OU=YYY,OU=ZZZ,OU=ÅÅÅ,OU=XXX,DC=YYY,DC=ZZZ,DC=se
tl-ldap-certalias: DEBUG: Found user None

Traceback (most recent call last):
  File "/opt/thinlinc/sbin/tl-ldap-certalias", line 1323, in <module>
    ret = main()
  File "/opt/thinlinc/sbin/tl-ldap-certalias", line 870, in main
    uid = int(attributes['uidNumber'][0])
TypeError: list indices must be integers, not str