1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

1092 Commits

Author SHA1 Message Date
Andrew Tridgell
cc6c263993 fixed warnings on irix and crash bug on big endian machines -
Andrew Tridgell
0cfd0a5e54 much better auto-init of valid_table[]. This should just about remove
the need for valid.dat
-
Andrew Tridgell
85f04fa61d mark '.' as a valid character -
Martin Pool
e76d27fcdb Add --enable-dmalloc to link against the dmalloc malloc debugger.
It's not as strong as Insure, but it's free, reasonably efficient and
works on every platform.
-
Jeremy Allison
ab2e55cdb3 Added AC_CHECK_FUNCS(syslog vsyslog).
nsswitch code uses vsyslog without checking for it.
Provide replacement for vsyslog in lib/snprintf if not found by configure.
Jeremy.
-
Andrew Tridgell
c11c27b281 fixed sid_compare_domain() -
Martin Pool
a7b052d991 Use less memory, but scribble all over it, just in case there's
something wrong with the way it's allocated.
-
Martin Pool
e2b080587c Doc how to reply to messages. -
Martin Pool
4c6c03c8c7 Make TALLOC_CTX and talloc_chunk private to talloc.c.
Add a global singly-linked list of all active talloc pools, so that we
can eventually show how much memory is used for different purposes.
This also gives a check that pools are not being doubly freed.

talloc_init_named now handle a NULL name properly (ie does nothing)

Add accessor talloc_pool_name().
-
Martin Pool
7da982e926 Doc -
Martin Pool
5dc2827b6e Doc -
Martin Pool
e6be48671d Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,
talloc_vasprintf.
-
Martin Pool
5b6c22a209 Doc. -
Martin Pool
25b97a7435 Start adding some debugging features to talloc based on Samba's
ancient mem_man.c:

Each TALLOC_CTX now has a field to store its purpose, to aid in
tracking down memory bloat.  A new call talloc_init_named() should be
used instead of talloc_init() so that this is set.

Added talloc_vasprintf to be called by varargs functions.
-
Martin Pool
e339066995 Add a very trivial talloc torture program, bin/talloctort. Not built
by default.
-
Jeremy Allison
7b8fb8d85c Fixup JF's weird SID return :-).
Jeremy
-
Tim Potter
c15dec74a3 A fix to override the location of a user's home directory if it is
specified in the [homes] section of the smb.conf file.

Jeremy, can you take a look at this?  This is in response to someone on the
samba mailing list worrying about it.


Tim.

From: Phil Thompson <philnanne@mediaone.net>
To: samba@lists.samba.org
Subject: Different [homes] behavior in 2.2.2
X-Original-Date: Mon, 17 Dec 2001 23:09:28 -0500


Is it possible to configure samba to disregard the home directory in the
passwd file when using [homes]?  Even though an alternate "path" is set
in [homes], the service fails since the unix home directory is invalid
(nonexistent) on the server.

[...]

This behavior of validating the user's home dir as set in the passwd
files appears to be new
in 2.2.2 and the latest CVS. Anyway to work around this?
-
Jean-François Micouleau
c44f4e9e33 tidy up debug
J.F.
-
Andrew Tridgell
505a1bdd15 obey "use mmap" on case tables -
Jeremy Allison
6d03184f8c Added HPUX ACL code.
Jeremy.
-
Jeremy Allison
59e01a22c5 Added the group enum code from 2.2
Jeremy.
-
Simo Sorce
d0614b2e66 I see no reasons why we should limit username lenght while checking
see bug 22130

jeremy, probably this should be fixed also in 2_2
-
Martin Pool
a4cc69d945 Explain why snprintf has to be overridden in this way. -
Tim Potter
62dfda654b Typo spotting. -
Andrew Tridgell
4a6d297686 make sid_binstring available without HAVE_ADS -
Andrew Tridgell
fa1e7a62ac add smb_xvasprintf() panic wrapper around vasprintf -
Jean-François Micouleau
fef52c4b96 again an intrusive patch:
- removed the ugly as hell sam_logon_in_ssb variable, I changed a bit the
definition of standard_sub_basic() to cope with that.

- removed the smb.conf: 'domain admin group' and 'domain guest group'
parameters ! We're not playing anymore with the user's group RIDs !

- in get_domain_user_groups(), if the user's gid is a group, put it first
in the group RID list.

I just have to write an HOWTO now ;-)

        J.F.
-
Andrew Tridgell
2b2155beae fixed an off by 1 bug in talloc_asprintf() -
Jean-François Micouleau
6c87e96149 added a boolean to the group mapping functions to specify if we need or
not the privileges. Usually we don't need them, so the memory is free
early.

lib/util_sid.c: added some helper functions to check an SID.

passdb/passdb.c: renamed local_lookup_rid() to local_lookup_sid() and pass
an RID all the way. If the group doesn't exist on the domain SID,
don't return a faked one as it can collide with a builtin one. Some rpc
structures have been badly designed, they return only rids and force the
client to do subsequent lsa_lookup_sid() on the domain sid and the builtin
sid !

rpc_server/srv_util.c: wrote a new version of get_domain_user_groups().
Only the samr code uses it atm. It uses the group mapping code instead of
a bloody hard coded crap. The netlogon code will use it too, but I have to
do some test first.

	J.F.
-
Andrew Tridgell
e908f304a2 moved init_account_policy() to the right place -
Andrew Tridgell
ea5d285721 const religion in talloc calls -
Jeremy Allison
5215bcca15 winbindd friendly user_in_list code. Tested on a 65k user domain.
Jeremy.
-
Jeremy Allison
708c0a8d16 Moved name_is_local to the correct place. Ooops.
Jeremy.
-
Jeremy Allison
8d41dfd149 Tidyup of lib/username. Add name_is_local fn to determine if name is
winbindd. Getting ready for efficiency fix in group lookups.
Jeremy.
-
Jean-François Micouleau
bc28a8eebd added a tdb to store the account policy informations.
You can change them with either usermanager->policies->account
or from a command prompt on NT/W2K: net accounts /domain

we can add a rpc accounts to the net command. As the net_rpc.c is still
empty, I did not start. How should I add command to it ? Should I take the
rpcclient/cmd_xxx functions and call them from there ?

alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more
for jeremy ;-)

        J.F.
-
Andrew Tridgell
789833b44e put sid_to_name behind the winbindd backend interface
I spent quite a while trying to work out how to make this call
via ldap and failed. I then found that MS servers seem use rpc
for sid_to_name, and it works even when in native mode, I ended
up just implementing it via rpc
-
Andrew Tridgell
88241cab98 added a basic ADS backend to winbind. More work needed, but at
least basic operations work
-
Andrew Tridgell
21a366afbe re-enabled insure backtrace, calling /usr/bin/backtrace -
Andrew Tridgell
0216b0fca1 The beginnings of alternative backends for winbindd
This just splits off the dispinfo call behind a methods structure.
I'll split off a few more functions soon, then we will be ready for
LDAP replacement methods
-
Tim Potter
9712d3f15a Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
-
Jeremy Allison
518084a70d Ensured the %G substitution exactly matches what the man page states.
Jeremy.
-
Andrew Tridgell
624cb28271 fixed typo -
Andrew Tridgell
e6004062a5 fixed toupper_w() and friends on big-endian
this fixes the core dumps on sparc
-
Andrew Tridgell
80841f5763 2nd attempt at fixing lame char tables on big endian machines -
Andrew Tridgell
568425709d fixed lame char tables on big endian machines -
Andrew Tridgell
23ef22f117 fixed some krb5 ifdefs -
Gerald Carter
c60aa6c06f merge from APPLIANCE_HEAD -
Andrew Tridgell
8698f7ef3e turn off the insure xterm hack for now -
Andrew Tridgell
91bc14f430 allow printing of NULL pointers with internal snprintf -
Andrew Tridgell
96224fe2d4 reverted incorrect patch -