[sudo-users] ./configure --with-ldap --with-pam

rhatuk rhatuk66 at googlemail.com
Tue Jul 3 06:47:05 EDT 2007


hi Andy, it seems that you are missing the pam-devel package.

can u pls run: rpm -qa | grep pam-dev to confirm?

If that's the case, I guess that an up2date pam-dev should fix it...

good luck m8.

On 7/3/07, Andy Loughran <andy at zrmt.com> wrote:
>
> Hi guys,
>
> Further to the post yesterday, I installed openldap-devel - but am still
> having issues.  LDAP authentication still works fine - all I want to do is
> enable a client machine to see the sudoers entry in my LDAP tree.
>
>
> http://web.singnet.com.sg/~garyttt/Installing%20and%20configuring%20OpenLDAP%20for%20RedHat%20Enterprise%20Linux3.htm
>
> I followed that howto - and on the local machine everything is working
> (LDAP SERVER & LDAP AUTH)  It's only when I try and set up sudo on client
> machines that it fails to work.
>
> The Server is RHEL5 and the clients are CentOS 5.
>
> Any clues from the make output below?
>
> Regards,
>
> Andy
>
>
>
> [root at www1 sudo-1.6.8p12]# make clean
> rm -f *.o sudo visudo sudo_noexec.la testsudoers core sudo.core
> visudo.core \
>                testsudoers.core
> [root at www1 sudo-1.6.8p12]# make
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  check.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  env.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  getspwuid.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  gettime.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  goodpath.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  fileops.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  find_path.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  interfaces.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  logging.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  parse.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  set_perms.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  sudo.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  sudo_edit.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  tgetpass.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  zero_bytes.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  ldap.c
> ldap.c: In function 'sudo_ldap_check_user_netgroup':
> ldap.c:114: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_check_host':
> ldap.c:152: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_check_runas':
> ldap.c:200: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_check_command':
> ldap.c:272: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_parse_options':
> ldap.c:341: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_add_match':
> ldap.c:661: warning: assignment makes pointer from integer without a cast
> ldap.c:670: warning: assignment makes pointer from integer without a cast
> ldap.c: In function 'sudo_ldap_check':
> ldap.c:793: warning: assignment makes pointer from integer without a cast
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  ./auth/sudo_auth.c
> gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  ./auth/pam.c
> ./auth/pam.c:52:32: error: security/pam_appl.h: No such file or directory
> ./auth/pam.c:69: warning: 'struct pam_response' declared inside parameter
> list
> ./auth/pam.c:69: warning: its scope is only this definition or
> declaration, which is probably not what you want
> ./auth/pam.c:69: warning: 'struct pam_message' declared inside parameter
> list
> ./auth/pam.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '*' token
> ./auth/pam.c: In function 'pam_init':
> ./auth/pam.c:85: error: storage size of 'pam_conv' isn't known
> ./auth/pam.c:92: error: 'pamh' undeclared (first use in this function)
> ./auth/pam.c:92: error: (Each undeclared identifier is reported only once
> ./auth/pam.c:92: error: for each function it appears in.)
> ./auth/pam.c:93: error: 'PAM_SUCCESS' undeclared (first use in this
> function)
> ./auth/pam.c:98: error: 'PAM_TTY' undeclared (first use in this function)
> ./auth/pam.c: In function 'pam_verify':
> ./auth/pam.c:115: error: 'pamh' undeclared (first use in this function)
> ./auth/pam.c:115: error: 'PAM_SILENT' undeclared (first use in this
> function)
> ./auth/pam.c:117: error: 'PAM_SUCCESS' undeclared (first use in this
> function)
> ./auth/pam.c:122: error: 'PAM_AUTH_ERR' undeclared (first use in this
> function)
> ./auth/pam.c:126: error: 'PAM_NEW_AUTHTOK_REQD' undeclared (first use in
> this function)
> ./auth/pam.c:131: error: 'PAM_CHANGE_EXPIRED_AUTHTOK' undeclared (first
> use in this function)
> ./auth/pam.c:134: warning: assignment makes pointer from integer without a
> cast
> ./auth/pam.c:137: error: 'PAM_AUTHTOK_EXPIRED' undeclared (first use in
> this function)
> ./auth/pam.c:141: error: 'PAM_ACCT_EXPIRED' undeclared (first use in this
> function)
> ./auth/pam.c:149: error: 'PAM_MAXTRIES' undeclared (first use in this
> function)
> ./auth/pam.c:150: error: 'PAM_PERM_DENIED' undeclared (first use in this
> function)
> ./auth/pam.c:153: warning: assignment makes pointer from integer without a
> cast
> ./auth/pam.c: In function 'pam_cleanup':
> ./auth/pam.c:170: error: 'pamh' undeclared (first use in this function)
> ./auth/pam.c:171: error: 'PAM_SUCCESS' undeclared (first use in this
> function)
> ./auth/pam.c: In function 'pam_prep_user':
> ./auth/pam.c:178: error: 'pamh' undeclared (first use in this function)
> ./auth/pam.c:185: error: 'PAM_USER' undeclared (first use in this
> function)
> ./auth/pam.c:186: error: 'PAM_RUSER' undeclared (first use in this
> function)
> ./auth/pam.c:196: error: 'PAM_ESTABLISH_CRED' undeclared (first use in
> this function)
> ./auth/pam.c:198: error: 'PAM_SUCCESS' undeclared (first use in this
> function)
> ./auth/pam.c: In function 'sudo_conv':
> ./auth/pam.c:214: error: argument 'msg' doesn't match prototype
> ./auth/pam.c:69: error: prototype declaration
> ./auth/pam.c:214: error: argument 'response' doesn't match prototype
> ./auth/pam.c:69: error: prototype declaration
> ./auth/pam.c:222: error: invalid application of 'sizeof' to incomplete
> type 'struct pam_response'
> ./auth/pam.c:223: error: 'PAM_CONV_ERR' undeclared (first use in this
> function)
> ./auth/pam.c:224: error: invalid application of 'sizeof' to incomplete
> type 'struct pam_response'
> ./auth/pam.c:226: error: increment of pointer to unknown structure
> ./auth/pam.c:226: error: arithmetic on pointer to an incomplete type
> ./auth/pam.c:226: error: increment of pointer to unknown structure
> ./auth/pam.c:226: error: arithmetic on pointer to an incomplete type
> ./auth/pam.c:228: error: dereferencing pointer to incomplete type
> ./auth/pam.c:229: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in
> this function)
> ./auth/pam.c:231: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in
> this function)
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:233: error: dereferencing pointer to incomplete type
> ./auth/pam.c:234: error: dereferencing pointer to incomplete type
> ./auth/pam.c:234: error: dereferencing pointer to incomplete type
> ./auth/pam.c:235: error: dereferencing pointer to incomplete type
> ./auth/pam.c:238: error: dereferencing pointer to incomplete type
> ./auth/pam.c:239: error: dereferencing pointer to incomplete type
> ./auth/pam.c:244: error: 'PAM_TEXT_INFO' undeclared (first use in this
> function)
> ./auth/pam.c:245: error: dereferencing pointer to incomplete type
> ./auth/pam.c:246: error: dereferencing pointer to incomplete type
> ./auth/pam.c:248: error: 'PAM_ERROR_MSG' undeclared (first use in this
> function)
> ./auth/pam.c:249: error: dereferencing pointer to incomplete type
> ./auth/pam.c:250: error: dereferencing pointer to incomplete type
> ./auth/pam.c:256: error: increment of pointer to unknown structure
> ./auth/pam.c:256: error: arithmetic on pointer to an incomplete type
> ./auth/pam.c:257: error: dereferencing pointer to incomplete type
> ./auth/pam.c:258: error: dereferencing pointer to incomplete type
> ./auth/pam.c:258: error: dereferencing pointer to incomplete type
> ./auth/pam.c:259: error: dereferencing pointer to incomplete type
> ./auth/pam.c:260: error: dereferencing pointer to incomplete type
> ./auth/pam.c:263: error: invalid application of 'sizeof' to incomplete
> type 'struct pam_response'
> ./auth/pam.c:270: error: 'PAM_SUCCESS' undeclared (first use in this
> function)
> make: *** [pam.o] Error 1
>
>
> --------
> Andy Loughran
> www.zrmt.com
> m: 07921076319
>
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users



More information about the sudo-users mailing list