Changes between Initial Version and Version 1 of Ticket #12157, comment 1


Ignore:
Timestamp:
Jun 2, 2015, 12:21:04 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12157, comment 1

    initial v1  
    22But you could try this change. Just above your code excerpt a block like this is found
    33
    4 {{{
     4{{{#!python
    55        attrs = {}
    66        try:
     
    1212        except:
    1313            self.log.warn('Attribute %s not found in %s' % (self.ldap_email_attr, dn.decode('iso-8859-15')))
     14}}}
    1415
    15 }}}
    1616Change to this, adding {{{attrs['XXX'] = ''}}} after each except
    17 {{{
     17
     18{{{#!python
    1819
    1920        attrs = {}
     
    2829            attrs['email'] = ''
    2930            self.log.warn('Attribute %s not found in %s' % (self.ldap_email_attr, dn.decode('iso-8859-15')))
    30 
    3131}}}