Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

apache 2.2.17 mod_authnz_crowd

Hi,

My customer needs (for some reason) to use a compied version of apache and not the default that comes with RHEL5.5.

In order to install the crowd module I've downlowded the RPM for RHEL5.5.

the apache install is at /usr/local/apache

I've "opened" the RPM (rpm2cpio mod_authnz_crowd-2.0.1-1.x86_64.rpm | cpio -imvd) and copied the modules (modules/mod_authnz_crowd.so and mod_authz_svn_crowd.so) to /usr/local/apache/modules.

the scriplet inside the rpm is using apxs to compiile and updated httpd.conf. I've made sure to use the right apxs:

# ./bin/apxs -e -a -n authnz_crowd mod_authnz_crowd.so

[activating module `authnz_crowd' in /usr/local/apache/conf/httpd.conf]

as you can see its installed correctly and httpd.conf was updated correctly:

#grep crowd conf/httpd.conf

LoadModule authnz_crowd_module modules/mod_authnz_crowd.so

when I started apache, I can see the module:

# ./bin/apachectl -k start

[Tue Dec 27 07:08:09 2011] [notice] mod_authnz_crowd 2.0.1 installed.

and then:

# ./bin/httpd -M|grep crowd

[Tue Dec 27 07:08:28 2011] [notice] mod_authnz_crowd 2.0.1 installed.

Syntax OK

authnz_crowd_module (shared)

so all is loaded and working.

however, when I add authentication to httpd.conf:

AuthName "Please enter your NT account information"

AuthType Basic

AuthBasicProvider Crowd

CrowdAppName ZZZZZ

CrowdAppPassword YYYYY

CrowdURL _http://someurl:8095/crowd/

Require valid-user

and just try to verify the httpd.conf syntax, I get:

# ./bin/apachectl -t

[Tue Dec 27 07:09:36 2011] [notice] mod_authnz_crowd 2.0.1 installed.

Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:

Invalid command '\xc2\xa0', perhaps misspelled or defined by a module not included in the server configuration

4 answers

any thoughts/help?

My thought is that the httpd.conf was saved with UTF-8 encoding with BOM. Open the file in midnight commander F4 and look at the begginning of the file. If you see some not readable symbo;s, just remove them and save with F2.

I've tried dos2unix but it didn't help.

I had to manually type the whole httpd.conf section and that solved it.

Nice to hear that you have solved it. I ususlly use 'mc' to see such incorrect symbols, it might be not only BOM but some other, that are not recognized as ascii.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Jira issue check and more advanced commit verifications for Bitbucket DC

Pre-receive hooks that verify the Git commit message, the modified files, and implement similar code change controls used to be requirements of large enterprises working in regulated industries only....

5 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you