This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sogodovecotldapandgroups [2016/02/02 22:07] – Fix code block. jim | sogodovecotldapandgroups [2016/02/05 12:44] (current) – Fix Python script. jim | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| # the script process runs as the user specified here (v2.0.14+): | # the script process runs as the user specified here (v2.0.14+): | ||
| user = $default_internal_user | user = $default_internal_user | ||
| + | | ||
| # this UNIX socket listener must use the same name as given to imap executable | # this UNIX socket listener must use the same name as given to imap executable | ||
| unix_listener imap-postlogin { | unix_listener imap-postlogin { | ||
| Line 81: | Line 82: | ||
| | | ||
| for dn, entry in res: | for dn, entry in res: | ||
| - | for g in entry[' | + | |
| - | # Returns ' | + | |
| - | # Fish out 'All UK staff' as group name. | + | # Returns ' |
| - | groups.append(g.split(',', | + | # Fish out 'All UK staff' as group name. |
| - | + | groups.append(g.split(',', | |
| + | | ||
| + | pass # User in no groups. | ||
| + | | ||
| os.environ[" | os.environ[" | ||
| try: | try: | ||