LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-12-2008, 05:55 AM   #1
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Rep: Reputation: 15
mod_auth_pam install?


[root@linux mod_auth_pam]# make
apxs -c mod_auth_pam.c -lpam
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_auth_pam.lo mod_auth_pam.c && touch mod_auth_pam.slo
mod_auth_pam.c:145:31: error: security/pam_appl.h: No such file or directory
mod_auth_pam.c:255: warning: 'struct pam_response' declared inside parameter list
mod_auth_pam.c:255: warning: its scope is only this definition or declaration, which is probably not what you want
mod_auth_pam.c:255: warning: 'struct pam_message' declared inside parameter list
mod_auth_pam.c: In function 'auth_pam_talker':
mod_auth_pam.c:269: error: 'PAM_CONV_ERR' undeclared (first use in this function)
mod_auth_pam.c:269: error: (Each undeclared identifier is reported only once
mod_auth_pam.c:269: error: for each function it appears in.)
mod_auth_pam.c:272: error: invalid application of 'sizeof' to incomplete type 'struct pam_response'
mod_auth_pam.c:279: error: invalid use of undefined type 'struct pam_response'
mod_auth_pam.c:279: error: dereferencing pointer to incomplete type
mod_auth_pam.c:280: error: invalid use of undefined type 'struct pam_response'
mod_auth_pam.c:280: error: dereferencing pointer to incomplete type
mod_auth_pam.c:283: error: dereferencing pointer to incomplete type
mod_auth_pam.c:284: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)
mod_auth_pam.c:286: error: invalid use of undefined type 'struct pam_response'
mod_auth_pam.c:286: error: dereferencing pointer to incomplete type
mod_auth_pam.c:288: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
mod_auth_pam.c:289: error: invalid use of undefined type 'struct pam_response'
mod_auth_pam.c:289: error: dereferencing pointer to incomplete type
mod_auth_pam.c:299: error: 'PAM_SUCCESS' undeclared (first use in this function)
mod_auth_pam.c: In function 'pam_auth_basic_user':
mod_auth_pam.c:325: error: variable 'conv_info' has initializer but incomplete type
mod_auth_pam.c:325: warning: excess elements in struct initializer
mod_auth_pam.c:325: warning: (near initialization for 'conv_info')
mod_auth_pam.c:325: warning: excess elements in struct initializer
mod_auth_pam.c:325: warning: (near initialization for 'conv_info')
mod_auth_pam.c:325: error: storage size of 'conv_info' isn't known
mod_auth_pam.c:326: error: 'pam_handle_t' undeclared (first use in this function)
mod_auth_pam.c:326: error: 'pamh' undeclared (first use in this function)
mod_auth_pam.c:344: warning: implicit declaration of function 'pam_start'
mod_auth_pam.c:347: error: 'PAM_SUCCESS' undeclared (first use in this function)
mod_auth_pam.c:351: warning: implicit declaration of function 'pam_strerror'
mod_auth_pam.c:351: warning: format '%s' expects type 'char *', but argument 7 has type 'int'
mod_auth_pam.c:368: warning: implicit declaration of function 'pam_authenticate'
mod_auth_pam.c:368: error: 'PAM_DISALLOW_NULL_AUTHTOK' undeclared (first use in this function)
mod_auth_pam.c:371: warning: format '%s' expects type 'char *', but argument 8 has type 'int'
mod_auth_pam.c:373: error: 'PAM_USER_UNKNOWN' undeclared (first use in this function)
mod_auth_pam.c:375: warning: implicit declaration of function 'pam_end'
mod_auth_pam.c:386: warning: implicit declaration of function 'pam_acct_mgmt'
mod_auth_pam.c:388: warning: format '%s' expects type 'char *', but argument 8 has type 'int'
mod_auth_pam.c:325: warning: unused variable 'conv_info'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_auth_pam.la] Fout 1

How can i fix this??
 
Old 03-12-2008, 07:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by zerocool22 View Post
mod_auth_pam.c:145:31: error: security/pam_appl.h: No such file or directory
Missing header, PAM dev package?
 
Old 03-12-2008, 07:57 AM   #3
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
yep thx for your reply

I installed it using tar, but don't know how to configure this and if i try to surf to http://localhost/~username of http://localhost/username i get 404 error.

etc/pam.d/httpd
--------------------
#%PAM-1.0
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so
auth required pam_ldap.so
auth required pam_caseless_listfile.so onerr=fail item=user sense=deny file=/path
account required pam_permit.so

etc/httpd/conf/httpd.conf
------------------------------
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

<IfModule>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost
UseCanonicalName Off
DocumentRoot "/var/www/html"
<Directory>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory>
Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
Allow from all
</Directory>
<IfModule>
UserDir disable
</IfModule>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files>
Order allow,deny
Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule>
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ "/var/www/icons/"

<Directory>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>


ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


<Directory>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>


IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable


AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif


ReadmeName README.html
HeaderName HEADER.html


IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t


AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW


ForceLanguagePriority Prefer Fallback


AddDefaultCharset UTF-8



AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz


AddHandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml



Alias /error/ "/var/www/error/"

<IfModule>
<IfModule>
<Directory>
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>

</IfModule>
</IfModule>

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0


BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
 
Old 03-12-2008, 08:10 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by zerocool22 View Post
I installed it using tar
You installed what from tarball?


Quote:
Originally Posted by zerocool22 View Post
but don't know how to configure this
You don't know how to configure *what* exactly? If it's mod_auth_pam, did you check out http://pam.sourceforge.net/mod_auth_...entation.html?


Quote:
Originally Posted by zerocool22 View Post
and if i try to surf to http://localhost/~username of http://localhost/username i get 404 error.
That's not related to your mod_auth_pam question isn't it? Does that mean you installed it OK now?

And on LQ it's customary to put unrelated questions in a *new* thread. That said, if you get errors running Apache (or any service) the first thing to do would be to verify your config (there's a verify or test switch in apachectl) and then check the logs.
 
Old 03-12-2008, 08:26 AM   #5
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
i installed mod_auth_pam from tarball, i dont how to configure httpd.conf and httpd togheter with mod_auth_pam to get it all to work togheter. I did check that website, but i couldn't figure it out, do you need to use the .htacces file?
 
Old 03-12-2008, 08:42 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by zerocool22 View Post
i installed mod_auth_pam from tarball
So it compiled OK?


Quote:
Originally Posted by zerocool22 View Post
i dont how to configure httpd.conf and httpd togheter with mod_auth_pam to get it all to work togheter.
For starters it's not listed as DSO in your httpd.conf. (BTW disabling any DSO's you don't need right now would be a good idea. Like the mod_proxy.* ones.)


Quote:
Originally Posted by zerocool22 View Post
I did check that website, but i couldn't figure it out, do you need to use the .htacces file?
If that's what the docs says it would be wrong not to use it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 AP and mod_auth_pam GT3NE1 Red Hat 0 07-31-2007 04:17 PM
mod_auth_pam + hhtps - security issues The_JinJ Linux - Security 1 12-12-2005 05:22 PM
mod_auth_pam users server-solution Linux - Software 0 12-09-2005 07:02 AM
apache mod_auth_pam stomach Linux - Software 12 09-08-2005 10:42 AM
mod_auth_pam installation problem !!! chuck77 Linux - General 1 02-04-2002 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration