Browse files

fixing docs and META

  • Loading branch information...
1 parent 2b82e7a commit 3f3523c0bf9f4c158a9dacb22ce762788ed39d5b @guedes committed Aug 27, 2011
Showing with 37 additions and 10 deletions.
  1. +32 −8 META.json
  2. +1 −1 Makefile
  3. +4 −1 doc/ldap_fdw.md
View
40 META.json
@@ -1,24 +1,48 @@
{
"name": "ldap_fdw",
- "abstract": "LDAP Foreign Data Wrapper",
- "description": "LDAP Foreign Data Wrapper",
+ "abstract": "LDAP Foreign Data Wrapper for PostgreSQL 9.1+",
+ "description": "LDAP Foreign Data Wrapper allow your PostgreSQL to query a LDAP server and retrieve data from some pre-configured Organizational Unit",
"version": "0.0.1",
"maintainer": "Dickson S. Guedes <guedes@guedesoft.net>",
- "license": "postgresql",
+ "license": {
+ "PostgreSQL": "http://www.postgresql.org/about/licence"
+ },
+ "prereqs": {
+ "runtime": {
+ "requires": {
+ "PostgreSQL": "9.1.0"
+ },
+ }
+ },
+ "resources": {
+ "bugtracker": {
+ "web": "https://github.com/theory/pgtap/issues"
+ },
+ "repository": {
+ "url": "git://github.com/guedes/ldap_fdw.git",
+ "web": "https://github.com/guedes/ldap_fdw",
+ "type": "git"
+ }
+ },
"provides": {
"ldap_fdw": {
- "abstract": "LDAP FDW",
+ "abstract": "LDAP Foreign Data Wrapper",
"file": "sql/ldap_fdw.sql",
"docfile": "doc/ldap_fdw.md",
"version": "0.0.1"
}
},
- "release_status": "unstable",
-
+ "release_status": "stable",
"generated_by": "Dickson S. Guedes <guedes@guedesoft.net>",
-
"meta-spec": {
"version": "1.0.0",
"url": "http://pgxn.org/meta/spec.txt"
- }
+ },
+ "tags": [
+ "ldap",
+ "fdw",
+ "SQL/MED",
+ "foreing data wrapper",
+ "external data"
+ ]
}
View
2 Makefile
@@ -7,7 +7,7 @@ TESTS = $(wildcard test/sql/*.sql)
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
REGRESS_OPTS = --inputdir=test --load-language=plpgsql
MODULES = $(patsubst %.c,%,$(wildcard src/*.c))
-PG_CONFIG = /srv/postgres/master/bin/pg_config
+PG_CONFIG = `which pg_config`
PG91 = $(shell $(PG_CONFIG) --version | grep -qE " 8\.| 9\.0" && echo no || echo yes)
ifeq ($(PG91),yes)
View
5 doc/ldap_fdw.md
@@ -24,7 +24,7 @@ For default ldap_fdw extension installs local server `ldap_local_service` that p
CREATE SERVER ldap_my_server_service
FOREIGN DATA WRAPPER ldap_fdw
- OPTIONS ( address 'my_ldap_server', port '1234');
+ OPTIONS ( address 'my_ldap_server', port '389');
Then create user mapping:
@@ -42,6 +42,9 @@ Finally create a foreign table with a base DN for some OU:
SERVER ldap_my_server_service
OPTIONS (base_dn 'OU=people,DC=example,DC=com');
+And voila!
+
+ SELECT * FROM ldap_people WHERE mail = 'user@mail.com';
Support
-------

0 comments on commit 3f3523c

Please sign in to comment.