1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

13966 Commits

Author SHA1 Message Date
Gerald Carter
14f2cd139a * set domain->last_status = NT_STATUS_SERVER_DISABLED on an ads_connect() failure
* Fix code to use winbind_rpc methods for trusted mixed mode or NT4 domains
  ( does no one ever test this? )
* add in LDAP code to get the sequence number for rpc based seqnum update.
  ( this is needed if the DC is upgraded and samba is not reconfigured
    to use security = ads; it's not pretty but it works (from app_head) )
* fix bug that caused us to enumerate domain local groups in domains
  other than our own
-
Tim Potter
82d3dd757b Produce an error if Active Directory support is requested and we don't
have krb5.h

Should fix bug 152.
-
Tim Potter
86b6ff134c Repair indentation in autoconf Kerberos detection code. This should
make it easier to understand/debug.
-
Simo Sorce
c501e84d41 Found out a good number of NT_STATUS_IS_ERR used the wrong way.
As abartlet rememberd me NT_STATUS_IS_ERR != !NT_STATUS_IS_OK

This patch will cure the problem.
Working on this one I found 16 functions where I think NT_STATUS_IS_ERR() is
used correctly, but I'm not 100% sure, coders should check the use of
NT_STATUS_IS_ERR() in samba is ok now.

Simo.
-
Andrew Bartlett
b7760faedc (fixing bug in my last commit)
This isn't C++ - start your code *after* all the variables are declared...

Andrew Bartlett
-
Volker Lendecke
2ec8d1ff88 Fix memory leak. secrets_fetch allocates memory.
Volker
-
Andrew Bartlett
477f2d9e39 This removes the StrCaseCmp() stuff from 'net idmap' and 'net
groupmap'.  The correct way to implement this stuff is via a function
table, as exampled in all the other parts of 'net'.

This also moves the idmap code into a new file.  Volker, is this your
code?  You might want to put your name on it.

Andrew Bartlett
-
Andrew Bartlett
74709e159c This patch fixes some issues with idmap_tdb as raised by bug #181
The idea here is to eliminate the need to *set* the 'HWM' (High Water
Mark) in the tdb.  Instead, each caller wanting to add an item to the
TDB uses the fact that an insert will *fail* if entry already exists.

More importantly, this means that we don't need to know the value of the
idmap uid/gid values when setting arbitrary entries, which can occur on
an smb.conf without such values specified.

Then all we need to do is loop until we get an id that will insert.
This means that the HWM does not need to be accurate, and we can have
IDs allocates safely above the HWM.

Setting the HWM to an arbitrary value was racy in the past - now we
don't even do it.

This patch also adds paranoia in reading the tdb - both the entry, and
it's reverse entry must be present.  This means that we don't need to
'clean up' after an abnormal failure (which would probably fail too),
instead we rely on readers to ignore the half-completed entry.  The way
this is done will allow SIDs to then allocated an ID when things are
normal again.

Andrew Bartlett
-
Andrew Bartlett
75081860af Always initialize. -
Gerald Carter
aac01dc7bc merge of the netsamlogon caching code from APPLIANCE_HEAD
This replaces the universal group caching code (was originally
based on that code).  Only applies to the the RPC code.

One comment: domain local groups don't show up in 'getent group'
that's easy to fix.

Code has been tested against 2k domain but doesn't change anything
with respect to NT4 domains.

netsamlogon caching works pretty much like the universal group
caching code did but has had much more testing and puts winbind
mostly back in sync between branches.
-
Andrew Bartlett
f93167a7e1 This patch works towards to goal of common code shared between idmap_ldap
and pdb_ldap.

So far, it's just a function rename, so that the next patch can be a very
simple matter of copying functions, without worrying about what changed
in the process.

Also removes the 'static' pointers for the rebind procedures, replacing them
with a linked list of value/key lookups.  (Only needed on older LDAP client
libs)

Andrew Bartlett
-
Jeremy Allison
fa8ca20ed4 Fixed sorting algorithm to prevent problems with W2K clients.
Jeremy.
-
Jim McDonough
897125a9db Fix bug #136. Add message about erroneous empty "passdb backend" parameter. -
Jim McDonough
22f083b227 Fix bug #136: "passdb backend = " caused smbd to segfault.
Instead, spit out an error message.
-
Steve French
7e7cf0dd98 Fix mount options for ro, dir_mode, file_mode -
Andrew Tridgell
f327c06108 fixed a bug found by volker
when we are traversing a readonly dababase we should not try to
cleanup the pending-delete records
-
John Terpstra
81abfec7fa Updating change from "winbind uid/gid" to "idmap uid/gid" -
John Terpstra
7eea35ba9f Applied Vance Lankhaar's spelling fixes. -
Tim Potter
fa66e2e1e1 The default action for AC_CHECK_LIB is to add the library to $LIBS so
this doesn't need to be done explicitly in the Kerberos checks.

Also there was a duplicate AC_CHECK_LIB(resolv, dn_expand) which is done
early on in the configure process.
-
Tim Potter
a7e67aaffe Back out some of the changes to nsstest. I've kept the NULL pointer
dereference bugfixes but left out the gethostbyname (wins) tests pending
a nicer way to integrate it.
-
Jeremy Allison
036a551b10 Missed initial param, typo.
Jeremy.
-
Jeremy Allison
a83595e80a Mapping of Windows ACL inheritance and protected bits onto extended attributes
if available. Adds new parameter "map acl inheritance" (docs coming soon)
off by default. Allows W2K acl inheritance dialogs to work correctly on
POSIX acls.
Jeremy.
-
Eloy Paris
f9f5211d79 Minor Debian updates. -
Jelmer Vernooij
598a7596f2 Fix typo -
Jelmer Vernooij
76182f4738 VFS modules are located in the subdirectory vfs of $LIBDIR -
Jim McDonough
2628259c20 Remove short -A option, but still leave in the --set-auth-user option.
This reflects a change made in wbinfo as a result of bug 158.
-
Jelmer Vernooij
33e8dd8843 Add installmodules to install -
Simo Sorce
e341e7c49f Ok, this patch removes the privilege stuff we had in, unused, for some time.
The code was nice, but put in the wrong place (group mapping) and not
supported by most of the code, thus useless.

We will put back most of the code when our infrastructure will be changed
so that privileges actually really make sense to be set.

This is a first patch of a set to enhance all our mapping code cleaness and
stability towards a sane next beta for 3.0 code base

Simo.
-
Eloy Paris
37acf55b60 Updated Debian patches so they apply cleanly and without warnings at
build time.
-
Jim McDonough
70fe85e469 Remove the -A option of wbinfo, leaving only the long version,
--set-auth-user.  There was enough confusion, as in bug #158,
when a user accidentally typed -A instead of -a, and would get themselves
stuck with a non-working winbind.

I've made the changes to docs/docbook/manpages/wbinfo.xml, but I'm not
sure what to do beyond that.  Is checking that in enough?
-
Volker Lendecke
5849053930 There's nothing particularly secret in idmap.tdb, so create it with
0644 as the other databases.

Volker
-
Volker Lendecke
9750799ba2 And some more memory leaks in mapping.c and pdb_tdb.c. tdb_nextkey
mallocs its key, so we should free it after use.

Volker
-
Volker Lendecke
2dfa896e6f Better panic cleanly than segfault later when no sid can be found and created.
Everybody who calls get_global_sam_sid expects this to return non-NULL, and
there are way too many places where this is called.

Volker
-
Volker Lendecke
2392f460ae And more other memory leaks. One new (idmap) and one ancient (groupdb).
Volker
-
Volker Lendecke
c660595ded Fix a memory leak in pdb_tdb.c.
Simo, I remember you complaining about a memleak there, could it be
this one, or did you resolve it at that time?

Volker
-
Jelmer Vernooij
908b16cc2a Make static (patch from metze) -
Jelmer Vernooij
2556037796 Fix building idmap_winbind as shared module -
Jelmer Vernooij
f09df852ac The return value of init_module functions is NTSTATUS, not int -
Volker Lendecke
dcdb6683a7 Fix memory leak in idmap. Valgrind is soooo cool.
Volker
-
Volker Lendecke
c0e35f3be8 Const fixes by metze
Volker
-
Jelmer Vernooij
2737518b25 Update link to DTD -
Jelmer Vernooij
f3fd321b61 Add DTD used by XML passdb backend -
Jelmer Vernooij
4ffe0b9f54 Fix for non-bourne shells -
Jelmer Vernooij
def4f2e81c Fix case -
Richard Sharpe
d9ac2540dd Squelch one small compiler warning -
Jelmer Vernooij
32ef93d31c Patch from metze to update VFS docs to include notes on multiple instances
of the same VFS module
-
Jelmer Vernooij
5696754126 - Only put PNG files in CVS, not EPS.
- Remove tag that breaks tex build
-
Richard Sharpe
e21aab516b Replace all use of bzero with memset ... -
Jelmer Vernooij
443b00c949 Fix some information, based on comments by Andrew Bartlett. -
Volker Lendecke
1ddeea2179 This glosses over John's problem at SambaXP 2003. When we want to join
a NT4 domain as a BDC with an existing workstation account (existing
bdc is fine), we fail. Print a friendly error message in this case.

The correct solution would probably be to delete the account and try
again. But even this makes us better than NT: NT4 fails in this
situation with an empty warning message box and an unusable BDC. It
has unsuccessfully tried to suck down the domain database, and thus
has no administrator account to log in after reboot....

Volker
-