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

9568 Commits

Author SHA1 Message Date
Tim Potter
4834c61ebc Fix for only specifying one command with -c
(This used to be commit 7418351427071edccb2e825ddbbf31fce8ef381e)
2003-02-21 04:25:04 +00:00
Martin Pool
1fc2976e14 Doxygen janitor
(This used to be commit 367997562998adb3f80602596c770d9ac319065b)
2003-02-21 03:05:55 +00:00
Jim McDonough
5bec7f5fca From aliguori@us.ibm.com:
This patch adds the architecture for an IDMAP backend system including a new
smb.conf parameter "winbind backend".  Right now, the only valid value is "tdb"
but I'm currently working on an LDAP backend.
(This used to be commit 35e4448dcb2deb0d5d34d9e974a49f2fb31f1356)
2003-02-20 22:46:37 +00:00
Jelmer Vernooij
8d8a8c9633 Make init_module() and thus smb_load_module() return an int.
modules/developer.c: init_module() should return an int
(This used to be commit 7f59703550378ff2333e3c851bf1a77037510abd)
2003-02-20 22:26:28 +00:00
Jeremy Allison
1009ef3e37 Added Volkers "print server role" patch.
Jeremy.
(This used to be commit e81d72ac221023ded9e0932be7dd303ad5280665)
2003-02-20 22:09:57 +00:00
Jelmer Vernooij
9d913a62ad Remove obsolete files
(This used to be commit f035cba2cf5764722318e9cd10dbe7bef56d0732)
2003-02-20 19:10:19 +00:00
Jeremy Allison
14401bb368 Ensure tdb error code is set for corrupt and i/o errors before calling
the log function. This allows the log function to take action.
Jeremy.
(This used to be commit 0fa310cbc3f7ced0b15be0ffaeb70dc82e1d5d12)
2003-02-20 18:54:12 +00:00
Andrew Bartlett
d7b4f389e9 For a number of months now, support for being a domain member without also
running winbind has been broken.  This fixes that, by removing assumptions
about being able to call sid_to_uid() at will.  This whole area needs
revising when we get groups into the PDB.

Andrew Bartlett
(This used to be commit 980eda74b7df347c38b567ce976197826963324a)
2003-02-20 12:01:39 +00:00
Andrew Bartlett
512405321a Like for NTLM logins, lookup the 'winbind' user first, then the 'local' user.
This needs to change, to be a SID->UID lookup from the PAC.

Andrew Bartlett
(This used to be commit 4071ed06a051f87f27e10510427a69fcdf45ddac)
2003-02-20 10:50:09 +00:00
Andrew Bartlett
215ff67a03 for some (very weird) reason, the domain I was testing aginst would not
return a DN for the user.  Make sure we don't segfault.

Andrew Bartlett
(This used to be commit 9fdedeff6a3a9f8e8d048e6afd7001ad676c4e91)
2003-02-20 10:43:21 +00:00
Martin Pool
f8d9cf2726 Doc
(This used to be commit 5d7d400d6c49b195a1174ef40c7bf95065427fbd)
2003-02-20 04:01:25 +00:00
Martin Pool
9061aae9b4 (Merge from APPLIANCE_HEAD)
CR1829: Fix memory leak when unpacking 'B' buffers in Python.

(PyList_Append creates a new reference to the added object, and so we
have to release the existing one.)
(This used to be commit 55e114f596e0edfdf176cabdbcfe7f01fae6f8aa)
2003-02-20 03:33:20 +00:00
Jeremy Allison
673cdea310 Fix inspired by Stefan (metze) Metzmacher - cache the sidtype also.
Jeremy.
(This used to be commit 634f20dff63d255c317f9dcc9f4caf4e8e79123c)
2003-02-19 22:30:57 +00:00
Simo Sorce
29b94266df correct init for vfs.conn, thanks Stefan
(This used to be commit 162683d2b5c15016fe1423876589573b48b9f5a6)
2003-02-19 22:26:19 +00:00
Jim McDonough
de88e704ce libads/krb5_setpw.c
(This used to be commit 4c52d7bd933f61bdba3d4159a204fe16db3d4f0f)
2003-02-19 20:37:34 +00:00
Jim McDonough
f15ed71fbb Can't return SAFE_FREE...put on its own line.
(This used to be commit 9f1a4809b503f050189d5f87a294b7d8675b1e95)
2003-02-19 15:46:15 +00:00
Jim McDonough
ffcee0c95e Correct way to keep fucntion from proto.h
(This used to be commit 762b072efb0d6801775a874494cb19ea3d61fa97)
2003-02-19 15:22:46 +00:00
Jim McDonough
ad03d0a4f8 Fix segv in net ads join...an extra & was the culprit
(This used to be commit 9874b233d55a0b1aea7eb033848f4b63a531833b)
2003-02-19 15:03:04 +00:00
Alexander Bokovoy
02cb49bffa Improve detection of iconv(3) for various platforms. M4 code is similar to what I use in Midgard for past few years, modified for Samba needs.
(This used to be commit 747d2d70a9eb4d9222d7b63e5fcec269eda76672)
2003-02-19 13:24:06 +00:00
Andrew Bartlett
6540693fea Missed one use of SETENV. (Compat macro no longer needed, as we have a
replace.c function).
(This used to be commit adad4c66fcfe756277de8c325ac9f8010f9d6f9c)
2003-02-19 12:19:52 +00:00
Andrew Bartlett
51521fab16 Now we have setenv() in replace.c, we don't need a seperate copy here.
Andrew Bartlett
(This used to be commit c4834c46902380455d2ea1dd62661224e8d4eb11)
2003-02-19 12:05:21 +00:00
Andrew Bartlett
39daab943d Check return values of various join-related functions, and ensure we always
compare push_* returns with (size_t)-1, not < 0.

Andrew Bartlett
(This used to be commit 63f5e92536c6bcac54b796d6e91b755e7d328f66)
2003-02-19 11:35:02 +00:00
Andrew Bartlett
1f1125577c Move to a in-memory ccache for winbind, and replace setenv() properly.
(According to the manpages, you cannot put a stack variable into putenv()).

Yes, this leaks memory.

Andrew Bartlett
(This used to be commit 50bced1e26434ecc7474964062746e2831e5f433)
2003-02-19 11:33:35 +00:00
Andrew Bartlett
231f737559 After a talloc_zero(), we don't need to ZERO_STRUCTP too..
(This used to be commit 4fe8066394143c64c79c052c00f0d747e872103a)
2003-02-19 11:30:52 +00:00
Andrew Bartlett
9e3198cca7 Fix logfile formatting, we were missing a "\n"
(This used to be commit 53b8f8a44141a9f6d36ed1b237ff65c67119edd0)
2003-02-19 11:30:09 +00:00
Andrew Bartlett
f145c2e350 Only do a kinit if we got told to use kerberos.
Andrew Bartlett
(This used to be commit 6af9ec50e010d171cf5287f40ec774e79e4a93fe)
2003-02-19 10:12:14 +00:00
Jim McDonough
3b541bdcfe Get non-krb systems to compile. How the heck do I keep something from being sucked into proto.h?
(This used to be commit 7e84497882df5bf933ab7ae7fe9af3728393202c)
2003-02-19 03:19:30 +00:00
Jeremy Allison
b63edf9a28 Fix from Corny.Bondad@hp.com for missing if (setting_acls) on default
perms.
Jeremy.
(This used to be commit ac96fa173cc3bd1c3226634154d6f99e4034179f)
2003-02-19 02:34:33 +00:00
Jeremy Allison
e7b5d059c2 Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if the
jobid is below the UNIX_JOB_START number.
Jeremy.
(This used to be commit e8a9bf67cbe5b3e33f99e6793fe4ec445d6e8819)
2003-02-19 01:38:12 +00:00
Jim McDonough
adfefcdcb6 Try to get heimdal working with HEAD.
- Provide generic functions for
  - get valid encryption types
  - free encryption types
- Add encryption type parm to generic function create_kerberos_key_from_string()
- Try to merge the two versions (between HEAD and SAMBA_3_0) of kerberos_verify.c

I think this should work for both MIT and heimdal, in HEAD.  If all goes smooth,
I'll move it over to 3.0 soon...
(This used to be commit 45e409fc8da9f26cf888e13d004392660d7c55d4)
2003-02-19 01:16:40 +00:00
Jim McDonough
e354fd27cb Add support for detecting method of listing encryption types (MIT v Heimdal)
(This used to be commit 48dcf5b97f2d53617c41237e09369ec678ab65e9)
2003-02-19 00:50:38 +00:00
Jim McDonough
a0913929ef base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().
(This used to be commit 8c69212eeb4a0ec144b960d76319fd4940b8c239)
2003-02-19 00:27:38 +00:00
Martin Pool
1d278baf06 Remove reference to obsolete samba-bugs address.
(This used to be commit 8e5f2ac3ca0b4cfb910f38532efb63526f28b579)
2003-02-19 00:13:23 +00:00
Jelmer Vernooij
5eb7b6113b Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
(This used to be commit 5de622968d95c1436dbd34edc8d0a9bbff68916b)
2003-02-18 18:43:59 +00:00
Jelmer Vernooij
c536b88b2b Use the new modules stuff to load dynrpc modules. Basically this means:
- calling the initialization function in the module init_module() instead of rpc_pipe_init()
- calling smb_load_module() to do the dlopen(), dlsym() and init_module() calls

I'll merge this to 3.0, together with the smb_load_module() function.

Discussed with Anthony.
(This used to be commit 3757ed8df06ca2b306bef336bdb9c7671f5e6a65)
2003-02-18 18:34:48 +00:00
Rafal Szczesniak
030beddfb3 Fix of two warnings.
pull_ucs2_talloc function takes char** pointer, not (here
explicitly casted) void** one.


Rafal
(This used to be commit e77c44efd95d42a8194f5c3d36c043f8e84dfd1d)
2003-02-18 14:59:21 +00:00
Tim Potter
5a32a8491d We don't use mkproto stuff for the python extensions anymore.
(This used to be commit 8d166ae093655a5a14a7478c7a84474b43e8ee97)
2003-02-18 05:08:09 +00:00
Tim Potter
8f9a17be89 Cleanup of header files for python extensions.
- combine py_foo_proto.h and py_foo.h
 - move #include of Python.h into one place so we can get rid of that
   annoying compiler warning about HAVE_FSTAT being redefined
(This used to be commit 0659351b251aee438bb9e92682bc445f164923a5)
2003-02-18 05:05:15 +00:00
Jeremy Allison
fb8d1412e1 Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now need
to set this for Tru64.
Jeremy.
(This used to be commit e7c4616c45ea5ec7c04022d6cca49ac70adde121)
2003-02-18 04:49:31 +00:00
Gerald Carter
336ae66c5a set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985
(This used to be commit 9a4b7a86fdaab04328b5017c1dd42480753a9a10)
2003-02-18 03:43:08 +00:00
Martin Pool
097bf66f71 Remove obsolete comment.
(This used to be commit e22465749dc7c2acd2441a897df592616fc275da)
2003-02-18 02:01:38 +00:00
Martin Pool
7741d66b18 Doxygen janitor. No other changes.
(This used to be commit 735c99dadbaffbb53662890e3dc8a668b211da9d)
2003-02-18 01:55:50 +00:00
Martin Pool
05e3070b23 cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDs
which are not valid.
(This used to be commit bfb6104521bd75da71a09a6c56bd44560416116e)
2003-02-18 01:35:19 +00:00
Martin Pool
49c3018cbc init_dom_sid2s: Check return code from string_to_sid. Skip tokens
that are not valid SIDs.
(This used to be commit 5a597272782b74d28859ba98027fe9ff9c278086)
2003-02-18 01:30:22 +00:00
Martin Pool
5511347b8d Check return code from string_to_sid.
(This used to be commit fe449328b226a33ad1c64e087fe63e79f90ab4ac)
2003-02-18 01:09:19 +00:00
Martin Pool
335fbbfbc9 add_initial_entry should fail if string_to_sid fails.
(This used to be commit bb095dc28d8369457286225ac63e03070889f394)
2003-02-18 01:05:56 +00:00
Andrew Bartlett
b70258af01 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
(This used to be commit bcbc2213230e95d732a774b5aee67295fba4380b)
2003-02-18 00:54:22 +00:00
Martin Pool
54a09519a4 Doxygen janitor and some doc typo fixes.
(This used to be commit 82414706e6659c1638936d9b9afdb9329109f58f)
2003-02-18 00:52:42 +00:00
Martin Pool
5a35b2138e Doxygen janitor. No other changes.
(This used to be commit fa38e7956c21b828ba208282ef0ac85c2b66ff22)
2003-02-18 00:41:13 +00:00
Andrew Bartlett
108580c224 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
(This used to be commit 1a723bcda72901dac00b36955e860e3af23c0dc6)
2003-02-18 00:36:37 +00:00