When not checking "On-the-fly" register, the 3 optional fields can now be safely left blank.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@854
e93f8b46-1217-0410-a6f0-
8f06a7374b81
attrs = [:firstname => AuthSourceLdap.get_attr(entry, self.attr_firstname),
:lastname => AuthSourceLdap.get_attr(entry, self.attr_lastname),
:mail => AuthSourceLdap.get_attr(entry, self.attr_mail),
- :auth_source_id => self.id ]
+ :auth_source_id => self.id ] if onthefly_register?
end
return nil if dn.empty?
logger.debug "DN found for #{login}: #{dn}" if logger && logger.debug?