]> andersk Git - mod-vhost-ldap.git/commitdiff
warning - watch attribute OIDS, they're not registered
authorPiotr Wadas <pwadas@jewish.org.pl>
Tue, 18 Jul 2006 21:37:28 +0000 (21:37 +0000)
committerPiotr Wadas <pwadas@jewish.org.pl>
Tue, 18 Jul 2006 21:37:28 +0000 (21:37 +0000)
with IANA nor something, turn schemacheck in your openldap.conf

git-svn-id: svn://svn.debian.org/svn/modvhostldap/branches/ext-config/mod-vhost-ldap@46 4dd36cbf-e3fd-0310-983d-db0e06859cf4

debian/README.Debian
debian/apache_ext.schema
debian/changelog
debian/control
debian/copyright
debian/docs
debian/rules
debian/vhost_ldap.conf
debian/vhost_ldap.load

index a077818ced34cc81742d5b47f08ebd2a59c2a36c..5f485fa06fa895da5d144514478871afd2bceba5 100644 (file)
@@ -1,16 +1,13 @@
 libapache2-mod-vhost-ldap and LDAP server support
 =================================================
 
-Your LDAP server needs to include mod_vhost_ldap.schema. If You want
-additional access control, then include apache_ext.schema also.
-If you do not use OpenLDAP you are on your own to build a schema.
-I used these lines:
+Your LDAP server needs to include module schema files,
+functionality.  If you do not use OpenLDAP you are on your own to build a schema.
+for each kind of functionality (core vhost, auth-perdir, auth-perlocation,
+auth-perdirectory). Temporarily remove cgi-suexec support, it
+will be added again in the way which cooperates with new aliasing
 
-index   apacheServerName,apacheServerAlias,apacheDocumentRoot,apacheServerAdmin pres,eq
-index   apacheExtConfigUri,apacheExtConfigServerName pres,eq,sub
-index   apacheLocationOptionsDn,apacheExtConfigRequireValidUser,apacheExtConfigUserDn,apacheExtConfigUserServerName,apacheExtConfigObjectName pres,eq
-
- -- Piotr Wadas <pwadas@jewish.org.pl> Fri 31 Mar 2006 20:00:08 +0100
+ -- Piotr Wadas <pwadas@jewish.org.pl> Tue 18 Jul 2006 11:33:24 +0100
 
 You should configure the LDAP server to maintain indices on apacheServerName,
 apacheServerAlias and anything you use in your additional search filter.
index 99e65468e98035a6d91eec2fac601984c407c73e..eda5ee079e98db2fd57d830b7cc74be885328499 100644 (file)
@@ -1,19 +1,6 @@
 #
 #
 #
-attributetype ( 1.1.2.5.4.133 NAME 'apacheLocationOptionsDn'
-       DESC 'apache Extended Config Object Location' 
-       SUP distinguishedName
-       )
-
-attributetype ( 1.1.2.5.4.134 NAME 'apacheExtConfigUri'
-       DESC 'apache Extended Config Uri' 
-       SUP name
-       EQUALITY caseIgnoreMatch
-       SUBSTR caseIgnoreSubstringsMatch
-       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
-       SINGLE-VALUE
-       )
 
 attributetype ( 1.1.2.5.4.135 NAME 'apacheExtConfigRequireValidUser'
        DESC 'apache Extended Config Require Type' 
@@ -32,6 +19,11 @@ attributetype ( 1.1.2.5.4.137 NAME 'apacheExtConfigUserDn'
        SUP distinguishedName
        )
 
+attributetype ( 1.1.2.5.4.138 NAME 'apacheExtConfigUserName'
+       DESC 'apache Extended Config UserName' 
+       SUP cn
+       )
+
 attributetype ( 1.1.2.5.4.139 NAME 'apacheExtConfigUserServerName'
        DESC 'apache Extended Config User ServerName' 
        SUP cn
@@ -50,31 +42,59 @@ attributetype ( 1.1.2.5.4.141 NAME 'apacheExtConfigHasRequireLine'
        SINGLE-VALUE
        )
 
-attributetype ( 1.1.2.5.4.138 NAME 'apacheExtConfigUserName'
-       DESC 'apache Extended Config UserName' 
-       SUP cn
-       SINGLE-VALUE
+attributetype ( 1.1.2.5.4.142 NAME 'apacheLocationOptionsDn'
+       DESC 'apache Extended Config Object Location' 
+       SUP distinguishedName
+       )
+
+attributetype ( 1.1.2.5.4.143 NAME 'apacheExtConfigUri'
+       DESC 'apache Extended Config Uri' 
+       SUP name
+       EQUALITY caseIgnoreMatch
+       SUBSTR caseIgnoreSubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
+       )
+
+attributetype ( 1.1.2.5.4.181 NAME 'apacheExtConfigPath'
+       DESC 'apache Extended Config Directory Value' 
+       SUP name
+       EQUALITY caseIgnoreMatch
+       SUBSTR caseIgnoreSubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
+       )
+
+attributetype ( 1.1.2.5.4.182 NAME 'apacheExtConfigUserDirectoryName'
+       DESC 'apache Extended Config User Directory Name' 
+       SUP name
+       EQUALITY caseIgnoreMatch
+       SUBSTR caseIgnoreSubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
+       )
+
+attributetype ( 1.1.2.5.4.183 NAME 'apacheExtConfigUserLocationUri'
+       DESC 'apache Extended Config User Directory Name' 
+       SUP name
+       EQUALITY caseIgnoreMatch
+       SUBSTR caseIgnoreSubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
        )
 
 objectclass ( 1.1.2.5.6.103 NAME 'apacheExtendedConfigLocation'
-       DESC 'This object class represents managed Group
+       DESC 'This object class membership determines whether vhost as access control
        MUST ( apacheLocationOptionsDn $ apacheExtConfigHasRequireLine )
        AUXILIARY
        )
 
 objectclass ( 1.1.2.5.6.104 NAME 'apacheExtendedConfigObject'
-       DESC 'This object class represents managed Group' 
-       MUST (  apacheExtConfigUri $ 
-                       apacheExtConfigRequireValidUser $ 
-                       apacheExtConfigServerName $
-                       apacheExtConfigObjectName
-                       ) 
-       MAY ( apacheExtConfigUserDn )
+       DESC 'This object class represents access control entry options' 
+       MUST (  apacheExtConfigRequireValidUser $ apacheExtConfigObjectName     ) 
+       MAY ( apacheExtConfigServerName $ apacheExtConfigUri $ apacheExtConfigPath $ apacheExtConfigUserDn )
        AUXILIARY
        )
 
 objectclass ( 1.1.2.5.6.105 NAME 'apacheExtendedConfigUserObject'
-       DESC 'This object class represents managed Group' 
-       MUST ( apacheExtConfigUserName $ apacheExtConfigUserServerName $ userPassword ) 
+       DESC 'This object class represents httpauth user properties' 
+       MUST ( apacheExtConfigUserName $ userPassword ) 
+       MAY  ( apacheExtConfigUserServerName $ apacheExtConfigUserDirectoryName $ apacheExtConfigUserLocationUri )
        AUXILIARY
        )
\ No newline at end of file
index 52b3cd3440f7390127d304d433de2fccb15af67a..cad1b64317b77e019a17e4bb2e185f87d8a616bf 100644 (file)
@@ -1,9 +1,21 @@
-mod-vhost-ldap (1.0.1-1) unstable; urgency=low
+mod-vhost-ldap (2.0.3-1) unstable; urgency=low
+
+  * New release, cleanup, fixes, new features and changes
+
+ -- Piotr Wadas <pwadas@jewish.org.pl>  Tue, 18 Jul 2006 12:45:12 +0100
+
+mod-vhost-ldap (2.0.0-2) unstable; urgency=low
+
+  * Fixed only-one-user issue
+
+ -- Piotr Wadas <pwadas@jewish.org.pl>  Sat, 1 Apr 2006 20:06:42 +0100
+
+mod-vhost-ldap (2.0.0-1) unstable; urgency=low
 
   * New upstream release.
-  * Add support for apache-2.2.x (Courtesy of Bart Vanbrabant)
+  * Added support for ldap-based basic auth/authz
 
- -- Ondřej Surý <ondrej@debian.org>  Fri, 21 Apr 2006 10:57:06 +0200
+ -- Piotr Wadas <pwadas@jewish.org.pl>  Tue, 28 Mar 2006 22:12:05 +0100
 
 mod-vhost-ldap (1.0.0-1) unstable; urgency=low
 
index 4f48e77d7ff2a262cfe5b6f04ebfc688937d1152..a4569f187b0b91c0f943cfd2033037bb97b9ffed 100644 (file)
@@ -1,17 +1,19 @@
 Source: mod-vhost-ldap
 Section: web
 Priority: optional
-Maintainer: Ondřej Surý <ondrej@debian.org>
-Standards-Version: 3.6.2
-Build-Depends: debhelper (>> 3.0.0), apache2-threaded-dev (>= 2.0.50-10), libldap-dev
+Maintainer: Piotr Wadas <pwadas@jewish.org.pl>
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>> 3.0.0), apache2-threaded-dev|apache2-prefork-dev (>= 2.0.50-10), libldap-dev
 
 Package: libapache2-mod-vhost-ldap
 Architecture: any
 Depends: ${shlibs:Depends}, apache2-common
 Description: Apache 2 module for Virtual Hosting from LDAP
  mod-vhost-ldap is Apache 2.x module for storing and configuring
- Virtual Hosts from LDAP.  It supports DocumentRoot, ScriptAlias,
- ServerName, ServerAlias, ServerAdmin and SuexecUserGroup directives.
+ Virtual Hosts from LDAP.  It supports servername aliasing, 
+ virtual location aliasing, http auth perdir and perlocation,
+ user-defined ldap filter, clear, htpasswd and unix passwords
+ for auth, fallback vhost and more.
  .
  It's build on top of mod_ldap, so it uses it's caching capabilities
  and can be used with threaded apache.
index 7be1537bedae81ea59de07adb4a63927b8dccbbb..aa50c7ed8982f181d352c30b65e4d560b887a6b5 100644 (file)
@@ -5,6 +5,7 @@ It was downloaded from http://alioth.debian.org/projects/modvhostldap/
 
 Copyright:
 
+Copyright (c) 2006, Piotr Wadas
 Copyright (c) 2005, Ondrej Sury
 All rights reserved.
 
index 6494fecdbfa9f365e7dfe283ea47b1d0a1208c2f..66d671d3f2b3e34359336d9aed7fef5c66c37a8f 100644 (file)
@@ -1,3 +1,5 @@
-mod_vhost_ldap.schema
 TODO
 README
+debian/apache_alias.schema
+debian/apache_ext.schema
+debian/mod_vhost_ldap.schema
index 1e02e32e732ed6f9cc7c17d11b5eef3a806b1cb4..39c5efb4b6891ff87fe6c37de6fe755d161c1449 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
 # This is the debhelper compatibility version to use.
 export DH_COMPAT=4
@@ -11,7 +11,7 @@ export DH_COMPAT=4
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -Werror -lcrypt -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
@@ -79,5 +79,9 @@ install: build
        mkdir -p $(DEST)/etc/apache2/mods-available
        install -m 644 debian/vhost_ldap.load $(DEST)/etc/apache2/mods-available
        install -m 644 debian/vhost_ldap.conf $(DEST)/etc/apache2/mods-available
+       mkdir -p $(DEST)/etc/ldap/schema/mods-available
+       install -m 644 debian/mod_vhost_ldap.schema $(DEST)/etc/ldap/schema/mod_vhost_ldap.schema
+       install -m 644 debian/apache_ext.schema $(DEST)/etc/ldap/schema/apache_ext.schema
+       install -m 644 debian/apache_alias.schema $(DEST)/etc/ldap/schema/apache_alias.schema
 
 .PHONY: binary binary-arch binary-indep clean build install
index f5103ea144649acd2eac8f00face9262c42c482b..495364d0932d39ad5959d52b73a0085b0db02bc7 100644 (file)
@@ -1,9 +1,55 @@
 ### mod_vhost_ldap depends on mod_ldap ###
 ### you have to enable mod_ldap as well ###
+### and probably set various cache options for it ###
+
+###scope values: base, one, sub
+###deref values: never, finding, searching, always
+###remember, user specified filter is checked as RFC-defined ldap filter before substitution
+###user filter specified here results with following internal filters and variables:
+### _A_ is the server name from the request (vhost server name to find)
+### _B_ is the uri for which access control is to be determined
+### _C_ is the name of the require valid-user directive (auth prompt message)
+### _D_ is the the user-defined filter
+### _E_ is the protected physical directory (doesn't need to be existing file or dir)
+### _F_ is the alias location uri 
+### _G_ is the protected uri for which access control is to be determined (see _E_)
+### _H_ is the alias uri which is to be aliased to specified directory
+### Each use of search filter is logged with debug level
+
+#####################################################################
+### Vhost search 
+### (&(_D_)(|(apacheServerName=_A_)(apacheServerAlias=_A_)))
+#####################################################################
+### Protected Location Search 
+### (&(_D_)(apacheExtConfigServerName=_A_)(apacheExtConfigUri=_B_))
+#####################################################################
+### Protected Directory Search
+### (&(_D_)(apacheExtConfigPath=_E_))
+#####################################################################
+### Alias Object Search
+### (&(_D_)(apacheAliasConfigServerName=_A_)(apacheAliasConfigSourceUri=_H_))
+#####################################################################
+### Web user Location Search
+### (&(_D_)(objectClass=apacheExtendedConfigUserObject)(apacheExtConfigUserServerName=_A_)(apacheExtConfigUserLocationUri=_G_))
+#####################################################################
+### Web user Directory Search
+### (&(_D_)(objectClass=apacheExtendedConfigUserObject)(apacheExtConfigUserDirectoryName=_E_))
+##################################
+
+### ldap[si]://host[:port]/basedn[?attrib[?scope[?filter]]]
+
+       VhostLdapEnabled On
+       VhostLdapUrl ldap[si]://host[:port]/basedn[?attrib[?scope[?filter]]]
+       #VhostLdapUrl ldap://hostname:389/dc=foo,dc=bar?*?sub?objectClass=activeObject
+       VhostLdapBindDn "cn=read only apache admin,dc=foo,dc=bar"
+       VhostLdapBindPw "secretpassword"
+       VhostLdapWlcBaseDn "ou=webAccess,dc=foo,dc=bar"
+       VhostLdapWucBaseDn "ou=webAccounts,dc=foo,dc=bar"
+       VhostLdapAliasesBaseDn "ou=webAliases,dc=foo,dc=bar"
+       VhostLdapDeref "never"
+       VhostLdapFallback default
+       VhostAliasesEnabled On
+       VhostLocAuthEnabled On
+       VhostDirAuthEnabled On
+
 
-<IfModule mod_vhost_ldap.c>
-    VhostLDAPEnabled on
-    VhostLDAPUrl "ldap://127.0.0.1/ou=vhosts,ou=web,dc=localhost"
-    VhostLdapBindDN "cn=admin,dc=localhost"
-    VhostLDAPBindPassword "changeme"
-</IfModule>
index aa6dfaf1bc7771f11b10781b00b08ae79f415676..7ba29c1f7a129d513f38f295ef5f7138e6a17653 100644 (file)
@@ -1,2 +1 @@
 LoadModule vhost_ldap_module    /usr/lib/apache2/modules/mod_vhost_ldap.so
-
This page took 0.109188 seconds and 5 git commands to generate.