1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

18688 Commits

Author SHA1 Message Date
Gerald Carter
9ee851630e r11762: fix my build breakage 2007-10-10 11:05:26 -05:00
Gerald Carter
2df34c9403 r11761: * fix clearing of event logs by truncating the tdb.
This feature got broken in some of the other updates.
  Now each open handle stores an pointer to an open tdb
  data structure (not the tdb pointer itself).
  Clearing can be done with a simple elog_close_tdb( elog, True )
  to force a close and then calling elog_open_tdb( logname, True )
  to force an tdb truncate.  Permissions on existing tdbs are
  maintained which is important.

* We don't currently handle backup.  Haven't looked at the
  format of a backuped up eventlog to know what the deal is.
2007-10-10 11:05:26 -05:00
Gerald Carter
ba2f94aeae r11760: fix sequential reads in the eventlog; event viewer is behaving better now as well but needs more testing 2007-10-10 11:05:26 -05:00
Volker Lendecke
99d76042e9 r11739: As per Jeremy's request, add a panic action for developers. Now configure.in
needs something along the lines of

if [ $LOGNAME == "jht" ]
then
   CFLAGS="$CFLAGS -DDEVELOPER"
fi

But that goes a bit far I think.... :-)))

Volker
2007-10-10 11:05:26 -05:00
Volker Lendecke
5b882acafb r11734: Remove unused variable 2007-10-10 11:05:26 -05:00
Jeremy Allison
081e458801 r11732: Remember to return early if -1 returned from *BSD EA call.
Pointed out by timur@com.bat.ru.
Jeremy.
2007-10-10 11:05:25 -05:00
Tim Potter
78ddbb1dd4 r11729: Remove space from DYNEXP flags declaration for HPUX. Fixes bugzilla
#3260.
2007-10-10 11:05:25 -05:00
Lars Müller
3e3113a1fa r11728: Ensure to check for the config.log in ${SRCDIR}.
Revert jerry's revert from 11685. :)

At the moment I don't see a way to check if there is an empty
${SMBWRAPPER} or none.  If there is a way to check if ${SMBWRAPPER}
isn't set at all we could make the installman script even work if
config.log does not exist.
2007-10-10 11:05:25 -05:00
Gerald Carter
715bd97708 r11725: build smbget by default 2007-10-10 11:05:25 -05:00
Jeremy Allison
6e1cb7047a r11719: Remove silly #define of close -> close_fn as this borks
any code that includes libsmbclient.h that also calls the
system close() fn. Doh ! Thanks to John Terpstra for
reporting this.
Jeremy.
2007-10-10 11:05:25 -05:00
Jeremy Allison
61444049e1 r11718: Filter stored DOS attributes by SAMBA_ATTRIBUTES_MASK (0x7f).
Jeremy.
2007-10-10 11:05:25 -05:00
Volker Lendecke
c8b67c2448 r11707: alt_names[i] might be NULL for i>0 also...
Volker
2007-10-10 11:05:24 -05:00
Volker Lendecke
62d01ce7e6 r11706: Implement dsr_getdcname client code. It's handy: It not only gives you the IP
address but also the fqdn of the remote dc and site info.

Volker
2007-10-10 11:05:24 -05:00
Volker Lendecke
4a4f85f0ef r11704: methods->alternate_name is not used anymore -- remove it 2007-10-10 11:05:24 -05:00
Gerald Carter
61e7366e0f r11685: reverting Lar's change to nistallman from r11224 since it breaks 'make installman' outside the source tree; will fix up after the rc1 release 2007-10-10 11:05:24 -05:00
Volker Lendecke
d1f506fa13 r11667: Fix a debug message 2007-10-10 11:05:24 -05:00
Gerald Carter
8bead2d282 r11661: Store the INFO3 in the PAC data into the netsamlogon_cache.
Also remove the mem_ctx from the netsamlogon_cache_store() API.

Guenther, what should we be doing with the other fields in
the PAC_LOGON_INFO?
2007-10-10 11:05:23 -05:00
Jeremy Allison
1c5a3c51e3 r11658: Someone broke the initialization of the static modules by adding a 'NTSTATUS'
declaration before their call.
The compiler sees : { NTSTATUS fn_foo(); NT_STATUS fn_bar(); }
as *definitions: They need to be : { fn_foo(); fn_bar(); }
Jeremy.
2007-10-10 11:05:23 -05:00
Paul Green
46674ca21d r11657: Tiny improvement to debug error message in dir_check_ftype. 2007-10-10 11:05:23 -05:00
Gerald Carter
b0a2d43b60 r11655: Two small fixes
* remove redundant call to sub_set_smb_name() in session setup code.
* Fix lockup when running 'wbinfo -t' on a Samba PDC.  Cause
  was new authenticated session setup from winbindd which
  resulted in a mangled username (machine_) that was not found
  in the local files and so was queiued up to nss_winbindd.
  Deadlock....
  So now make sure to keep the trailing '$' for machine account
  names when calling sub_set_smb_name().
2007-10-10 11:05:23 -05:00
Paul Green
6bf4d88ab5 r11653: Declare the correct return value for the static initialization functions.
Some compilers (guess whose) have ABIs that return int values using a
different method than returning struct values.
2007-10-10 11:05:23 -05:00
Gerald Carter
0c2bb5ba7b r11652: Reinstate the netsamlogon_cache in order to work
around failed query_user calls.  This fixes
logons to a member of a Samba domain as a user from a
trusted AD domain.

As per comments on samba-technical, I still need to add

(a) cache the PAC info as werll as NTLM net_user_info_3
(b) expire the cache when the SMB session goes away

Both Jeremy and Guenther have signed off on the idea.
2007-10-10 11:05:23 -05:00
Gerald Carter
aaed605206 r11651: After talking to Jeremy, commit my winbindd "Do the Right Thing" patch.
Still needs some more testing ni domains with multiple DCs. Coming next....
2007-10-10 11:05:22 -05:00
Gerald Carter
5bfa88225c r11645: mklogon updates from Ricky Nance 2007-10-10 11:05:22 -05:00
Gerald Carter
37d2bf02f3 r11617: fix typo 2007-10-10 11:05:22 -05:00
Jeremy Allison
11c6b8ecd6 r11614: Replace old crc32 code with one from the FreeBSD tree.
*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
2007-10-10 11:05:22 -05:00
Gerald Carter
b50a264f01 r11613: fixing versions 2007-10-10 11:05:21 -05:00
Gerald Carter
c1a4329833 r11591: bumping version 3.0.22pre1 2007-10-10 11:05:21 -05:00
Volker Lendecke
5b1b72ce7b r11585: Implement the possibility to have AFS users as SIDs in pts.
Volker
2007-10-10 11:05:21 -05:00
Derrell Lipman
07dd45af84 r11583: r10556@cabra: derrell | 2005-11-08 13:20:56 -0500
fix copy/paste error
2007-10-10 11:05:21 -05:00
Derrell Lipman
b4871a5525 r11582: r10193@cabra: derrell | 2005-11-08 13:12:39 -0500
Fixed "clean" target -- bin/libmsrpc.a was not being deleted.

 Jerry, the shared version of libmsrpc is not using a version number.  For consistency, I added LIBMSRPC_MAJOR and LIBMSRPC_MINOR definitions but they are not
 currently being used.  I don't know if the non-use of version is intentional
 or not.
2007-10-10 11:05:21 -05:00
Gerald Carter
c0c181826e r11580: fix an uninitialized variable that was causing winbindd to die in winbindd_dual_getsidaliases() 2007-10-10 11:05:21 -05:00
Gerald Carter
59c00924b6 r11579: syncing up perf counter code cfrom trunk 2007-10-10 11:05:21 -05:00
Gerald Carter
db4eb72142 r11577: adding perl interpreter she-bang to top of parselog.pl script 2007-10-10 11:05:20 -05:00
Jeremy Allison
d1caef8663 r11573: Adding Andrew Bartlett's patch to make machine account
logons work if the client gives the MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
or MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT flags. This changes
the auth module interface to 2 (from 1). The effect of this is
that clients can access resources as a machine account if they
set these flags. This is the same as Windows (think of a VPN
where the vpn client authenticates itself to a VPN server
using machine account credentials - the vpn server checks
that the machine password was valid by performing a machine
account check with the PDC in the same was as it would a
user account check. I may add in a restriction (parameter)
to allow this behaviour to be turned off (as it was previously).
That may be on by default.
Andrew Bartlett please review this change carefully.
Jeremy.
2007-10-10 11:05:20 -05:00
Jeremy Allison
d398a1aeb4 r11566: From metze. Use "interpret_addr(lp_socket_address())" for port 138.
Jeremy.
2007-10-10 11:05:20 -05:00
Jeremy Allison
e8136ae746 r11560: Fix core dump if setmntent returns NULL.
Pointed out by Jay Fanlason @ Red Hat.
Jeremy.
2007-10-10 11:05:20 -05:00
Volker Lendecke
bff03f0cd4 r11556: Fix "make everything" 2007-10-10 11:05:20 -05:00
Volker Lendecke
d92c83aa42 r11551: Add a few more initialize_krb5_error_table 2007-10-10 11:05:20 -05:00
Gerald Carter
26e9c1c1fa r11549: fixing GPL notices 2007-10-10 11:05:19 -05:00
Gerald Carter
9337a286c9 r11548: adding simple script to tail syslog and write to eventlog tdb 2007-10-10 11:05:19 -05:00
Jeremy Allison
b745114423 r11530: Add the "time offset" parameter back in for people who
might use it.
Jeremy.
2007-10-10 11:05:19 -05:00
Jeremy Allison
414303bc02 r11511: A classic "friday night check-in" :-). This moves much
of the Samba4 timezone handling code back into Samba3.
Gets rid of "kludge-gmt" and removes the effectiveness
of the parameter "time offset" (I can add this back
in very easily if needed) - it's no longer being
looked at. I'm hoping this will fix the problems people
have been having with DST transitions. I'll start comprehensive
testing tomorrow, but for now all modifications are done.
Splits time get/set functions into srv_XXX and cli_XXX
as they need to look at different timezone offsets.
Get rid of much of the "efficiency" cruft that was
added to Samba back in the day when the C library
timezone handling functions were slow.
Jeremy.
2007-10-10 11:05:19 -05:00
Jeremy Allison
c93a08be4a r11508: Removed incorrect patch hunk. Thanks to Andrew
Bartlett for pointing this out.
Jeremy.
2007-10-10 11:05:19 -05:00
Jeremy Allison
7795fce24e r11506: Added description of ACL in usage message.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
4591984176 r11504: Added Andrew Bartletts removal of another NTLMSSP implementation
patch.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
f1e0c86363 r11494: Finally fix #3192 - remember iDiskfreeCacheTime is
an *integer*, not a pointer. Doh !
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
37e6ef9389 r11492: Fix bug #3224 (I hope). Correctly use machine_account_name
and client_name when doing netlogon credential setup.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
3ba5d02cff r11491: If we get a reject ensure we're printing out the server/domain/machine
a/c we were asking for.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
f1616911a8 r11482: Arrg. Can't believe this code was in this state. If you
don't initialize the mask then setting "special" access
gets set to *random* permissions !
Jeremy.
2007-10-10 11:05:18 -05:00