version 1.13, 2008/07/07 22:01:11
|
version 1.14, 2008/07/07 23:50:42
|
|
|
with_solaris_defaults=1 | with_solaris_defaults=1 |
;; | ;; |
| |
|
--with-test-user=*) |
|
with_test_user=$optarg |
|
;; |
|
|
*) | *) |
echo "$0: unknown option: $opt" | echo "$0: unknown option: $opt" |
exit 1 | exit 1 |
|
|
Use PAM standalone cimservera program (implies --enable-pam). | Use PAM standalone cimservera program (implies --enable-pam). |
--with-pam=DIR | --with-pam=DIR |
Specify an alternative PAM directory location (defaults to /etc/pam.d). | Specify an alternative PAM directory location (defaults to /etc/pam.d). |
|
--with-test-user=USER |
|
The USER for user-related tests (must refer to actual OS user). |
--enable-ssl | --enable-ssl |
Enable SSL feature | Enable SSL feature |
--with-ssl=DIR | --with-ssl=DIR |
|
|
with_pam=/etc/pam.d | with_pam=/etc/pam.d |
fi | fi |
| |
|
if [ -z "$with_test_user" ]; then |
|
with_test_user=guest |
|
fi |
|
|
##============================================================================== | ##============================================================================== |
## | ## |
## Verify --with-ssl directory. | ## Verify --with-ssl directory. |
|
|
| |
##============================================================================== | ##============================================================================== |
## | ## |
|
## Check whether the test user will be able to access pegasus home. |
|
## |
|
##============================================================================== |
|
|
|
uid=`id -u` |
|
cwd=`/bin/pwd` |
|
|
|
if [ "$uid" = "0" -a "$disable_tests" != "1" ]; then |
|
|
|
if [ "$enable_pam" = "1" -o "$enable_pam_standalone" = "1" ]; then |
|
|
|
su $with_test_user -c "/bin/true" |
|
|
|
if [ "$?" != "0" ]; then |
|
echo "$0: The test user account ($with_test_user) does not exist on this system. Please create a test user with this name or designate an existing one with the --with-test-user option." |
|
exit 1 |
|
fi |
|
|
|
su $with_test_user -c "cd $cwd 2> /dev/null" |
|
|
|
if [ "$?" != "0" ]; then |
|
echo "$0: The test user account ($with_test_user) has insufficient privileges to access the pegasus root directory ($cwd), which will cause the user-context tests to fail. Please configure from a different directory." |
|
exit 1 |
|
fi |
|
fi |
|
|
|
fi |
|
|
|
##============================================================================== |
|
## |
## Create options.mak | ## Create options.mak |
## | ## |
##============================================================================== | ##============================================================================== |