⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
LdapShadows
All Projects
DuckCorp
»
LdapShadows
Overview
Activity
Roadmap
Issues
News
Wiki
Files
Repository
Download (183 Bytes)
Statistics
| Branch:
0.1.x
master
| Tag:
0.1.0
| Revision:
root
/
conf
/
ldap_shadows
/
shadows
/
MilkyPond
/
plugins
/
objects
/
individual.rb
@ 38e5c5db
View
History
Annotate
7b832340
Marc Dequènes (Duck)
953a2b4d
Marc Dequènes (Duck)
def
self
.
hook_before_create
(
item
)
7b832340
Marc Dequènes (Duck)
unless
item
.
attribute_present?
(
'cn'
)
cn
=
item
.
surname
||
""
cn
=
item
.
givenName
+
" "
+
cn
if
item
.
givenName
item
.
cn
=
cn
end
end
Loading...