projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec6c0dc
)
extract @ffzg.hr mail or safeq smtp server will reject it
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Feb 2019 09:03:32 +0000
(10:03 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Feb 2019 09:03:32 +0000
(10:03 +0100)
sql/hreduperson.sql
patch
|
blob
|
history
diff --git
a/sql/hreduperson.sql
b/sql/hreduperson.sql
index
b3cb5b3
..
c40b846
100644
(file)
--- a/
sql/hreduperson.sql
+++ b/
sql/hreduperson.sql
@@
-15,7
+15,12
@@
select
b.borrowernumber as objectGUID,
surname as displayName,
a.attribute as pager,
b.borrowernumber as objectGUID,
surname as displayName,
a.attribute as pager,
- email as mail,
+ case
+ when email regexp '@ffzg.hr' then email
+ when emailpro regexp '@ffzg.hr' then emailpro
+ else
+ trim(userid)
+ end as mail,
categorycode as memberOf,
categorycode as ou,
categorycode as department,
categorycode as memberOf,
categorycode as ou,
categorycode as department,