Comments (5)
Hi @sla82 . Can you share the ldapsearch command ?
from ldap2pg.
Hi @bersace , sure. here are the commands.
AD1:
ldapsearch -H ldaps://DC1.XXX.loc -x -LLL -D "CN=pgldap,OU=User,DC=XXX,DC=loc" -w 'password -b "dc=XXX,dc=loc" "(objectClass=person)" samaccountname
AD2:
ldapsearch -H ldap://AA-DC-01.bb.YYY.com -x -LL -D 'CN=PGLDAP,OU=User,DC=bb,DC=YYY,DC=com' -x -w 'password' -b DC=bb,DC=YYY,DC=com '(objectClass=person)' samaccountname
from ldap2pg.
Since you need two calls to ldapsearch, you'll need two calls on ldap2pg. ldap2pg behaves like ldaputils. It synchronize from a single directory to a single Postgres instance.
You'll have to ensure each ldap2pg run don't clash with other by implemented ad-hoc managed_roles_query
to exclude roles managed by the other. I.e. keep track of the source AD of a role and restrict managed_roles_query
to managed roles from this AD only.
from ldap2pg.
How can i do two calls on ldap2pg with different URI, BINDDN, BASE & PASSWORD?`
Can you provide an example?
from ldap2pg.
How can i do two calls on ldap2pg with different URI, BINDDN, BASE & PASSWORD?` Can you provide an example?
Execute ldap2pg with two environment variables set.
$ LDAPURI=ldaps://dc1 ldap2pg
$ LDAPURI=ldaps://dc2 ldap2pg
from ldap2pg.
Related Issues (20)
- ERROR: ldap2pg.script: TypeError: unhashable type: 'dict' HOT 2
- Configure role per database HOT 2
- ldap2pg does not synchronize when using {cn} in name or parent HOT 2
- Is predefined role pg_signal_backend required when.using unpriv user? HOT 3
- Complex AD configuration V6.0 HOT 1
- Configure Python Version of ldap2pg v5.9 HOT 8
- ldap2pg cron.d HOT 3
- endless loop when trying to create roles with parent HOT 3
- ldap2pg 6 in official postgres-common repository HOT 2
- Drop schema cascade? HOT 1
- Issue with Applying Privileges for All Schemas HOT 8
- Connect to different Postgres Servers
- Use GSSAPI for directory authentication HOT 8
- WARN Unexpected DN HOT 11
- Privileges for PostgreSQL procedures HOT 7
- fallback_owner HOT 5
- Typo in documentation
- Runtime error : invalid memory address or nil pointer dereference HOT 2
- Requesting a new build of 5.xversion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldap2pg.