SUDO (1.6.7p5) with LDAP

Aaron Spangler as at insight.rr.com
Fri May 14 21:21:44 EDT 2004


Let me know what OS & Version you are running.  I will see if I can get you
a build.

 -Aaron


----- Original Message -----
From: <RLau at jp.statestreet.com>
To: "Aaron Spangler" <aaron at spangler.ods.org>
Sent: Friday, May 14, 2004 1:42 AM
Subject: Re: SUDO (1.6.7p5) with LDAP


>
> Aaron
>
> I still have no luck with sudo working fine with Sun ONE LDAP. I am
> wondering whether you would have a workable package of SUDO for that? if
> yes, pls kindly advise where I can get it? Many thanks.
>
>
> Regards,
> Ronald
>
>
>
>
>                       Ronald Lau
>                                                To:      Aaron Spangler
<aaron at spangler.ods.org>@SSGA
>                       2004/04/23 08:08         cc:
>                                                Subject: Re: SUDO (1.6.7p5)
with LDAP(Document link: Ronald Lau)
>
>
>
>
> Wah,
>
> Aaron, you are so nice. I didn't expect you would reply me, and in such a
> short time. I really appreciate it.
>
> I have read some posts on CVS, people talking about ver 1.6.8, is this
> package better to try? I cuoldn't find it on CVS
> http://www.sudo.ws/cgi-bin/cvsweb/
>
> It is 8:05am in Japan now. Today, I am gonna try to download each piece of
> new version codes, for ldap.c and others... I am just wondering whether
> that is a tested package with all new codes.
>
> for ldap.h, I will try to use the ones come with DS. Thanks for your hint
> again.
>
>
> Kind Regards,
> Ronald
>
>
>
>
>                       Aaron Spangler
>                       <aaron at spangler.o        To:
RLau at jp.statestreet.com
>                       ds.org>                  cc:
>                                                Subject:  Re: SUDO
(1.6.7p5) with LDAP
>                       2004/04/22 23:02
>
>
>
>
>
>
>
> It looks as though you have two problems.
>
> First, check your Sun ONE DS 5.2 installation directory for an ldap.h.
> Solaris 8 does come with its own ldap*.h file in /usr/include but in the
> few short attempts to get it to build I have not had success.  I suspect
> you will have more luck with using the librarires which come with the
> directory server itself.  Short of that, OpenLDAP works great as well.
> I suspect this is why you are getting the 'ldap.h' errors.
>
> You might be able to get the /usr/include/ldap.h stuff to work anyway if
> you go through it and look for any special defines that it needs.
>
> Also, perhaps the snapshot of the sudo-ldap may have a slightly older
> ldap.c. (Maybe its fine, just a guess).  I suspect this is why you are
> getting the ldap.c warnings.  If you have access to CVS, pull a fresh
> copy from the cvs server.
>
> Please let me know your progress.  I will continue to help you.
> If this doesn't work, I'll give you my phone number and you can call me
> when you first get to work.  (Which by my calculations I should be just
> finishing dinner).
>  -Aaron
>
> On Thu, Apr 22, 2004 at 06:50:57PM +0900, RLau at jp.statestreet.com wrote:
> > Aaron,
> >
> >
> > I have got 1.6.7p5 sudo, and tried to utilize it with LDAP. I am
> compiling
> > it on Solaris8, with Sun ONE Directory Server 5.2. I got the following
> > compiling issue. Could you pls help? Thanks.
> >
> > the steps I used as below
> >
> > 1. type ./configure --with-ldap --with-pam
> > 2. edit Makefile, put -lldap -llber to LIBS
> > 3. put lines
> > #define HAVE_LDAP 1
> > #undef HAVE_LDAP_INITIALIZE
> > #define HAVE_LBER_H
> >
> > to config.h
> >
> > 4. make
> >
> >
> > Regards,
> > Ron
> >
> >
> >
> > # make
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  check.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  env.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  getspwuid.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  goodpath.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  fileops.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  find_path.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  interfaces.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  logging.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  parse.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  set_perms.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  sudo.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  tgetpass.c
> > gcc -c -I. -I.  -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> > -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> > -DSUDOE
> > RS_MODE=0440  ldap.c
> > In file included from ldap.c:51:
> > ldap.h:494: field `ldctl_value' has incomplete type
> > ldap.h:1083: parse error before `BerElement'
> > ldap.h:1085: parse error before `BerElement'
> > ldap.h:1115: parse error before `BerElement'
> > ldap.c: In function `sudo_ldap_check_runas':
> > ldap.c:217: `def_runas_default' undeclared (first use in this function)
> > ldap.c:217: (Each undeclared identifier is reported only once
> > ldap.c:217: for each function it appears in.)
> > ldap.c: In function `sudo_ldap_check':
> > ldap.c:839: union has no member named `tuple'
> > ldap.c:839: `never' undeclared (first use in this function)
> > ldap.c:849: `def_authenticate' undeclared (first use in this function)
> > ldap.c:851: `def_noexec' undeclared (first use in this function)
> > ldap.c:851: `FLAG_NOEXEC' undeclared (first use in this function)
> > *** Error code 1
> > make: Fatal error: Command failed for target `ldap.o'
> > #
> >
>
>
>
>
>
>
>




More information about the sudo-users mailing list