projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d51827
)
skip expired users
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 29 Aug 2015 12:47:18 +0000
(14:47 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 29 Aug 2015 12:47:18 +0000
(14:47 +0200)
sql/group.sql
patch
|
blob
|
history
diff --git
a/sql/group.sql
b/sql/group.sql
index
47c28b8
..
b862457
100644
(file)
--- a/
sql/group.sql
+++ b/
sql/group.sql
@@
-8,4
+8,4
@@
select
concat('uid=',replace(userid,'@ffzg.hr',''),',ou=',c.categorycode,',dc=ffzg,dc=hr') as members
from categories c
join borrowers b on b.categorycode = c.categorycode
concat('uid=',replace(userid,'@ffzg.hr',''),',ou=',c.categorycode,',dc=ffzg,dc=hr') as members
from categories c
join borrowers b on b.categorycode = c.categorycode
-where length(userid) > 0
+where length(userid) > 0
and userid not like '%@expired'