[Samba] pdb_mysql compile failure

xfesty xfesty at computeraddictions.com.au
Mon Nov 4 05:44:20 GMT 2002


Hiya...

Compiling the mysql module (cvs) isn't working too well.

I modify "srcdir" in the Makefile to /usr/src/samba/source (as per 
README instructions), and I get the following:

root at serber[/usr/src/samba/examples/pdb/mysql]# make
libtool gcc -O   -Iinclude -I/usr/src/samba/source/include 
-I/usr/src/samba/source/ubiqx -I/usr/src/samba/source/smbwrapper  -I. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   
-I/usr/src/samba/source -c pdb_mysql.c
rm -f .libs/pdb_mysql.lo
gcc -O -Iinclude -I/usr/src/samba/source/include 
-I/usr/src/samba/source/ubiqx -I/usr/src/samba/source/smbwrapper -I. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-I/usr/src/samba/source -c pdb_mysql.c  -fPIC -DPIC -o 
.libs/pdb_mysql.lo
pdb_mysql.c: In function `row_to_sam_account':
pdb_mysql.c:232: too few arguments to function 
`pdb_set_pass_last_set_time'
pdb_mysql.c:235: too few arguments to function `pdb_set_username'
pdb_mysql.c:236: too few arguments to function `pdb_set_domain'
pdb_mysql.c:237: too few arguments to function `pdb_set_nt_username'
pdb_mysql.c:238: too few arguments to function `pdb_set_fullname'
pdb_mysql.c:243: too few arguments to function `pdb_set_acct_desc'
pdb_mysql.c:244: too few arguments to function `pdb_set_workstations'
pdb_mysql.c:245: too few arguments to function `pdb_set_unknown_str'
pdb_mysql.c:246: too few arguments to function `pdb_set_munged_dial'
pdb_mysql.c:249: too few arguments to function `pdb_set_uid'
pdb_mysql.c:251: too few arguments to function `pdb_set_gid'
pdb_mysql.c:254: too few arguments to function `pdb_set_user_sid'
pdb_mysql.c:256: too few arguments to function `pdb_set_group_sid'
pdb_mysql.c:259: too few arguments to function `pdb_set_lanman_passwd'
pdb_mysql.c:261: too few arguments to function `pdb_set_nt_passwd'
pdb_mysql.c:268: too few arguments to function `pdb_set_acct_ctrl'
pdb_mysql.c:269: too few arguments to function `pdb_set_unknown_3'
pdb_mysql.c:270: too few arguments to function `pdb_set_logon_divs'
pdb_mysql.c:271: too few arguments to function `pdb_set_hours_len'
pdb_mysql.c:272: too few arguments to function `pdb_set_unknown_5'
pdb_mysql.c:273: too few arguments to function `pdb_set_unknown_6'
pdb_mysql.c: In function `mysqlsam_replace_sam_account':
pdb_mysql.c:698: `FLAG_SAM_LOGONTIME' undeclared (first use in this 
function)
pdb_mysql.c:698: (Each undeclared identifier is reported only once
pdb_mysql.c:698: for each function it appears in.)
pdb_mysql.c:706: `FLAG_SAM_LOGOFFTIME' undeclared (first use in this 
function)
pdb_mysql.c:714: `FLAG_SAM_KICKOFFTIME' undeclared (first use in this 
function)
pdb_mysql.c:722: `FLAG_SAM_CANCHANGETIME' undeclared (first use in this 
function)
pdb_mysql.c:730: `FLAG_SAM_MUSTCHANGETIME' undeclared (first use in 
this function)
pdb_mysql.c:762: `FLAG_SAM_UID' undeclared (first use in this function)
pdb_mysql.c:769: `FLAG_SAM_GID' undeclared (first use in this function)
make: *** [pdb_mysql.lo] Error 1

The system is running Debian unstable (woody).

Cheers

R

On Monday, November 4, 2002, at 02:56 PM, xfesty wrote:

> Hiya.
>
> I'm in the middle of (re)developing a authentication system for an 
> internet cafe here in Sydney.
>
> By complete accident I discovered the PDB MySQL plugin for samba 
> yesterday in CVS - amazing.  Haven't tried this yet (waiting for samba 
> to compile on a really slow machine, heh) but it looks great.
>
> Is anybody using this?  Would you recommend it for use in a heavy use 
> type environment?
>
> I've noticed in the README for this there's identifiers for "logoff 
> time" and "kickoff time".  Hmm.  Basically, the clients are Windows XP 
> machines, and previously I had written a Windows client / UNIX server 
> infastructure to do this logging off.
>
> Can samba actually "kick" users off after a certain amount of time?
>
> Wow.
>
> If it can, someone let me know how :)
>
> R
>




More information about the samba mailing list