if attr.has_key('fullName'):
                    name = attr['fullName'][0]
                else:
                    name = '%s %s' % (attr['givenName'][0], attr['sn'][0])