Line 234: |
Line 234: |
| $OUT .= " AuthName \"$name\"\n"; | | $OUT .= " AuthName \"$name\"\n"; |
| $OUT .= " AuthType Basic\n"; | | $OUT .= " AuthType Basic\n"; |
| + | $OUT .= " AuthBasicProvider external\n"; |
| $OUT .= " AuthExternal pwauth\n"; | | $OUT .= " AuthExternal pwauth\n"; |
| $OUT .= " require valid-user\n"; | | $OUT .= " require valid-user\n"; |
Line 249: |
Line 250: |
| $OUT .= " AuthName \"$name\"\n"; | | $OUT .= " AuthName \"$name\"\n"; |
| $OUT .= " AuthType Basic\n"; | | $OUT .= " AuthType Basic\n"; |
| + | $OUT .= " AuthBasicProvider external\n"; |
| $OUT .= " AuthExternal pwauth\n"; | | $OUT .= " AuthExternal pwauth\n"; |
| '''$OUT .= " require valid-user\n";''' | | '''$OUT .= " require valid-user\n";''' |
Line 259: |
Line 261: |
| $OUT .= " AuthName \"$name\"\n"; | | $OUT .= " AuthName \"$name\"\n"; |
| $OUT .= " AuthType Basic\n"; | | $OUT .= " AuthType Basic\n"; |
| + | $OUT .= " AuthBasicProvider external\n"; |
| $OUT .= " AuthExternal pwauth\n"; | | $OUT .= " AuthExternal pwauth\n"; |
| '''$OUT .= " require user admin pierre paul\n";''' | | '''$OUT .= " require user admin pierre paul\n";''' |
Line 287: |
Line 290: |
| $OUT .= " AuthName \"$name\"\n"; | | $OUT .= " AuthName \"$name\"\n"; |
| $OUT .= " AuthType Basic\n"; | | $OUT .= " AuthType Basic\n"; |
| + | $OUT .= " AuthBasicProvider external\n"; |
| $OUT .= " AuthExternal pwauth\n"; | | $OUT .= " AuthExternal pwauth\n"; |
| $OUT .= " GroupExternal unixgroup\n"; | | $OUT .= " GroupExternal unixgroup\n"; |
Line 345: |
Line 349: |
| If it is not done you can have this error in log file and you won't be authenticated | | If it is not done you can have this error in log file and you won't be authenticated |
| configuration error: couldn't check user. No user file?: | | configuration error: couldn't check user. No user file?: |
− | See this [http://code.google.com/p/mod-auth-external/wiki/ConfigApache22 howTo]<br /> | + | See this [http://code.google.com/p/mod-auth-external/wiki/ConfigApache22 howTo]. You need to verify if your /etc/httpd/conf/httpd.conf contain these lines |
− | | |
− | You need to verify if your /etc/httpd/conf/httpd.conf contain these lines | |
| AddExternalGroup unixgroup /usr/bin/unixgroup | | AddExternalGroup unixgroup /usr/bin/unixgroup |
| SetExternalGroupMethod unixgroup environment | | SetExternalGroupMethod unixgroup environment |
| | | |
− | if it is not the case, you can make the relevant fragment template.
| + | We are waiting the default use of authenticator unixgroup in sme9 (see [[bugzilla:8008]]). For now you need to make the relevant fragment template. |
| + | |
| nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth | | nano /etc/e-smith/templates/etc/httpd/conf/httpd.conf/35-group-auth |
| { | | { |
− | $OUT .= " AddExternalGroup unixgroup /usr/lib/httpd/modules/unixgroup\n"; | + | $OUT .= " AddExternalGroup unixgroup /usr/bin/unixgroup\n"; |
| $OUT .= " SetExternalGroupMethod unixgroup environment\n"; | | $OUT .= " SetExternalGroupMethod unixgroup environment\n"; |
| } | | } |