Commit Graph

43 Commits

Author SHA1 Message Date
f43d18d46a Retrieve only necessary attributes from LDAP server 2022-12-02 14:04:43 +01:00
ff6d6cce22 Fix logging with WARN, INFO, DEBUG level 2022-12-02 14:03:45 +01:00
40661830a4 Exclude internal role of PostgreSQL-15 2022-12-02 13:27:35 +01:00
ee81807f49 Add error text to exception when an error was logged 2022-12-02 13:20:24 +01:00
5a07820472 Fix compat with ruby < 2.5 2022-12-02 08:05:42 +01:00
81473fb2b4 Re-add support for attribute ranges
This is an alternative implementation of  .
It doesn't need additional configuration, but enables range retrieval automatic.
It also add some testing.

Fixes 
2022-12-01 15:27:40 +01:00
f5b9587eb7 Revert "Support synchronize groups with over 1500 users in Active Directory server"
This reverts commit d833228547.
2022-11-30 13:24:29 +01:00
f83b32f8d9 Revert "Instead of adding a new config option, use range retrieval when member_attribute includes ;range"
This reverts commit 917e716d38.
2022-11-30 13:24:27 +01:00
917e716d38 Instead of adding a new config option, use range retrieval when member_attribute includes ;range 2022-08-24 14:47:56 +08:00
d833228547 Support synchronize groups with over 1500 users in Active Directory server 2022-08-24 12:04:10 +08:00
d22a67b0e7 Use do-end syntax for multiline blocks
This is more standard these days.
2022-01-17 16:08:40 +01:00
791f9dc72c Fix memberships of bothcase-users
Only one of both users was recognized as a member of the LDAP group.
2022-01-17 16:05:51 +01:00
c6c6562ac4 Bump VERSION to 0.3.0 2022-01-17 15:03:13 +01:00
d8ea157c66 Add config option :bothcase_name 2022-01-17 14:48:49 +01:00
52ca5fc323 Update predefined roles for PostgreSQL-14 2022-01-17 13:37:09 +01:00
257b1a5e49 Whole bunch of changes
Run sync within a SQL transaction, so that no partial sync happens

Don't abort on SQL errors, but print ERROR notice

Exit with code 1 when any ERRORs were logged

Silence the test suite, so that test runs are more clearly

Use PG queries instead of psql in test. This is more flexible
than parsing text outputs per Regexp.
2018-03-13 16:34:50 +01:00
3d676d20d1 Exclude default roles of PostgreSQL-10 2018-02-06 22:31:06 +01:00
5169177b97 Remove possibility to use postgres-pr
It is no longer maintained and doesn't work with current PostgreSQL versions.
2018-02-06 22:29:48 +01:00
e73cdd52a9 Merge branch 'master' of github.com:larskanis/pg-ldap-sync 2018-02-06 22:00:56 +01:00
2d700214af Add pg_ldap_sync --version 2018-02-06 21:58:53 +01:00
611abf1594 Move from Hoe to Bundler
This adds a gemspec and a Gemfile to the repository.
2018-02-06 21:56:53 +01:00
6294c7e883 Update application.rb
@pgconn is already defined, so lets us it
2018-02-06 15:55:20 +02:00
2f24829bc5 Use PG everywhere instead of PGconn 2018-01-31 13:14:43 +02:00
9cbb8e9e87 Update application.rb
Use PG.connect instead of PGconn.connect
2018-01-31 12:47:28 +02:00
1df48950f5 Add ability to lowercase the LDAP name for use as PG role name 2012-11-14 11:03:50 +01:00
321781679d fix crash when droping a role and revoking it's memberships afterwards 2011-07-08 15:50:33 +02:00
055810e815 description to param -v changed 2011-07-08 12:19:15 +02:00
9dba0a6ab1 fix compatibility with pg.gem 2011-07-07 16:17:01 +02:00
92b560c688 avoid syntax warning 2011-07-07 16:15:25 +02:00
68e6b40741 add proper error checking for LDAP search 2011-07-07 15:07:44 +02:00
e43a96b19b add support for postgres-pr 2011-05-24 13:52:21 +02:00
f07fab1a9f select only needed columns 2011-05-24 11:42:43 +02:00
4ed42eeb2c fix argv parsing and close PG connection 2011-05-24 11:24:32 +02:00
adab86a3f0 add sample and schema yaml files 2011-05-24 08:06:08 +02:00
5800f7cbc4 add YAML schema validation through kwalify 2011-05-23 15:39:42 +02:00
2e2daf173f fix crash for unknown pg member names 2011-05-23 11:00:56 +02:00
a66c607608 avoid logging of binary data 2011-05-23 10:49:25 +02:00
2cc2b39863 renamed MatchedMembership#member_of to #has_member - that's what it means 2011-05-23 10:44:07 +02:00
47d5b9862e moved log output into #match_membership and #match_roles 2011-05-23 10:34:53 +02:00
853367186d fix typo 2011-05-20 15:54:15 +02:00
fccc2df8db add grant_options 2011-05-20 15:51:50 +02:00
0bb2754bca add membership sync 2011-05-20 15:33:46 +02:00
d54d82ae95 Sync roles works, sync membership not yet 2011-05-18 15:45:08 +02:00