tekrat

SMBAuth

I haven’t had much time to work on SMBAuth, and probably won’t for a while. I know some of you have been asking for the downloads while the site has been down, so I’ll post them here. This should work for most peoples needs (you’ll need to compile with an older version of Samba), drop me an email if you’re interested in seeing an upgrade to this…

smbauth 1.5.1

tar/gz

bzip2

smbauth 1.5.0

tar/gz

bzip2

7 Responses for "SMBAuth"

  1. Denise Hynson September 19th, 2006 at 7:03 am

    Compiling on x86_64 machine with rhel3u7 installed. Can you inform me what I am doing wrong?

    cd samba-2.2.8a/source
    ./configure
    make
    cd ../..
    ./configure –enable-apache –with-apxs=$APACHDIR/bin/apxs –with-samba=samba-2.2.8a make

    lc-mhtb-204{toolsadm}384: ./configure –enable-apache –with-apxs=$APACHDIR/bin/apxs –with-samba=samba-2.2.8a checking for gcc… gcc checking for C compiler default output… a.out checking whether the C compiler works… yes checking whether we are cross compiling… no checking for suffix of executables…
    checking for suffix of object files… o checking whether we are using the GNU C compiler… yes checking whether gcc accepts -g… yes checking for gcc option to accept ANSI C… none needed checking for Samba Source Directory… yes checking for swig… no checking for Apache /tools/apache/2.0.59/x86_64/bin/apxs… /tools/apache/2.0.59/x86_64/bin/apxs
    checking for yp_get_default_domain in -lnsl… yes checking for socket in -lsocket… no checking for dlopen in -ldl… yes checking how to run the C preprocessor… gcc -E checking for egrep… grep -E checking for ANSI C header files… yes checking for sys/types.h… yes checking for sys/stat.h… yes checking for stdlib.h… yes checking for string.h… yes checking for memory.h… yes checking for strings.h… yes checking for inttypes.h… yes checking for stdint.h… yes checking for unistd.h… yes checking for size_t… yes checking for ANSI C header files… (cached) yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libsmbauth/Makefile
    config.status: creating apache/Makefile

    ** Sucessfull Configuration **

    The following language/server modules have been configured:
    (You can configure additional modules with the –enable- option.)

    libsmbauth apache

    You can build the enabled modules with a ‘make’ command.
    You can install the built modules with a ‘make install’ command.

    Enjoy! -Tekrat Labs, http://www.tekrat.com

    lc-mhtb-204{toolsadm}385: make
    make[1]: Entering directory `/var/tmp/smbauth1.5.1/libsmbauth’
    Building libsmbauth
    includes -> -I../samba-2.2.8a/source -I../samba-2.2.8a/source/include -I../samba-2.2.8a/source/ubiqx -I../samba-2.2.8a/source/smbwrapper -I../samba-2.2.8a/source/popt
    libsmbauth.c: In function `_smbauth_init’:
    libsmbauth.c:59: error: `dyn_CONFIGFILE’ undeclared (first use in this function)
    libsmbauth.c:59: error: (Each undeclared identifier is reported only once
    libsmbauth.c:59: error: for each function it appears in.)
    libsmbauth.c: In function `_smbauth_openCli’:
    libsmbauth.c:104: error: `Undefined’ undeclared (first use in this function)
    libsmbauth.c:105: error: too many arguments to function `cli_full_connection’
    libsmbauth.c: In function `_smbauth_fetch_machine_sid’:
    libsmbauth.c:123: error: too many arguments to function `talloc_init’
    libsmbauth.c:129: error: `PI_LSARPC’ undeclared (first use in this function)
    libsmbauth.c: In function `_smbauth_getCliUserGroups’:
    libsmbauth.c:187: error: too many arguments to function `talloc_init’
    libsmbauth.c:192: error: `PI_SAMR’ undeclared (first use in this function)
    make[1]: *** [libsmbauth.o] Error 1
    make[1]: Leaving directory `/var/tmp/smbauth1.5.1/libsmbauth’
    make: *** [libsmbauth] Error 2
    lc-mhtb-204{toolsadm}386: echo $LD_LIBRARY_PATH /usr/local/lib64:/usr/local/lib

  2. Cliff Albert January 24th, 2007 at 5:59 am

    Probably your version is too old. I’ve been trying to get it compiled using: Samba 3.0.10, 3.0.20 and 3.0.23d, but no success! It seems libsmbauth is the only way of getting smb authentication working on Apache2.

    Could you please try and update it ? :)

  3. Octavian Hornoiu September 22nd, 2007 at 7:50 am

    Hopefully you’ll have some time to get this updated for the newer versions of samba like > 3.0 because we use this module exclusively for our webdav publishing.

    Thanks for all your hard work on this!

  4. Dano April 28th, 2008 at 10:34 am

    I can’t seem to download smbauth now. I get the message “Sorry, no posts match your criteria” when I click on any of the links.

  5. shire April 28th, 2008 at 12:37 pm

    Sorry about that, moved some things around and broke the links. These should be good now. Thanks for the post.

  6. Zheng Liu May 2nd, 2008 at 8:27 am

    here is my compile error:

    # cd /local/Softwares/smbauth1.5.1/libsmbauth
    # make
    Building libsmbauth
    includes -> -I/usr/include -I./include -I. -I../samba-3.0.28a//source -I../samba-3.0.28a//source/lib/replace -I../samba-3.0.28a//source/lib/talloc -I../samba-3.0.28a//source/tdb/include -I../samba-3.0.28a//source/libaddns -I../samba-3.0.28a//source/librpc -I../samba-3.0.28a//source/include -I../samba-3.0.28a//source/popt
    libsmbauth.c: In function `_smbauth_init’:
    libsmbauth.c:59: error: too few arguments to function `lp_load’
    libsmbauth.c: In function `_smbauth_fetch_machine_sid’:
    libsmbauth.c:136: error: incompatible types in assignment
    libsmbauth.c:142: error: incompatible types in assignment
    libsmbauth.c: In function `_smbauth_getCliUserGroups’:
    libsmbauth.c:197: error: incompatible types in assignment
    libsmbauth.c:203: error: incompatible types in assignment
    libsmbauth.c:209: error: incompatible types in assignment
    libsmbauth.c:217: error: incompatible types in assignment
    libsmbauth.c:223: error: incompatible types in assignment
    libsmbauth.c:229: error: syntax error before ‘)’ token
    libsmbauth.c:234: error: incompatible types in assignment
    libsmbauth.c: In function `_smbauth_changePassword’:
    libsmbauth.c:306: error: incompatible types in assignment
    *** Error code 1
    The following command caused the error:
    gcc -fPIC -O -c libsmbauth.c -I/usr/include -I./include -I. -I../samba-3.0.28a//source -I../samba-3.0.28a//source/lib/replace -I../samba-3.0.28a//source/lib/talloc -I../samba-3.0.28a//source/tdb/include -I../samba-3.0.28a//source/libaddns -I../samba-3.0.28a//source/librpc -I../samba-3.0.28a//source/include -I../samba-3.0.28a//source/popt
    make: Fatal error: Command failed for target `libsmbauth.o’

  7. JOhn W. January 20th, 2010 at 10:20 am

    What are the current alternatives to SMBAuth for Apache, PHP and PAM based authentication to AD?


Leave a reply