1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

6394 Commits

Author SHA1 Message Date
Gerald Carter
4ad930ad5e merge from appliance_head
(This used to be commit 423554fd71b3c9718fc3a21006da9ce6371fc845)
2001-12-13 16:35:43 +00:00
Andrew Tridgell
9a83100c65 -Insswitch/ breaks the build by preventing include of <nss.h> from working
(This used to be commit 1ef98625404a2df0fb0b70b40041e3b8cdbc5f5d)
2001-12-13 13:54:39 +00:00
Andrew Tridgell
1fb2f3649d added "net ads info" to fetch basic ADS info without any auth
(This used to be commit b107ecef7097e4b3b870f51fa6628b870703b4de)
2001-12-13 13:19:20 +00:00
Andrew Tridgell
3a1cd6f427 make sure we find NSS_STATUS struct
(This used to be commit 7db718d44a62aee9610a9dfd9e671345a0ea7737)
2001-12-13 11:58:38 +00:00
Andrew Tridgell
d58b1b5981 better error handling
(This used to be commit ed6279481bfcb21212e9c22009969c19ea4f1646)
2001-12-13 11:30:13 +00:00
Andrew Tridgell
75a6ac48a0 try the PDC for our workgroup if we can't find the ldap server
(This used to be commit fc9fd2ca19899e757a6d3ccbba3d4a10f27d7a3f)
2001-12-13 11:29:49 +00:00
Andrew Tridgell
0ae4916299 improved error message from failed connect
(This used to be commit 4405a87fb754cece3a5428246ea6ecb9abba1996)
2001-12-13 08:54:51 +00:00
Jeremy Allison
e0d3a9e443 Must check against -1 for fcntl error check.
Jeremy
(This used to be commit 1d2504b5c76bf23ac49a401adce8a49f193bc22c)
2001-12-13 02:34:43 +00:00
Tim Potter
23b239625c Fix some compiler warnings.
(This used to be commit 216dff438095781934b57fd097ed118daf5fffa0)
2001-12-13 00:02:37 +00:00
Jeremy Allison
a85390ae69 Always use ASCII strings when changing passwords with RAP.
Jeremy.
(This used to be commit d3ac2265b1b83e2e030688ee8e0d43918ce4d203)
2001-12-12 19:40:22 +00:00
Herb Lewis
62877996e4 ran autoconf
(This used to be commit f881a8f197a6f6d9512693c4cb705cda1b1d5041)
2001-12-12 16:13:52 +00:00
Herb Lewis
ed7caa2ecf allow IRIX to build nsswitch/libnss_wins.so
(This used to be commit 564bfd77287b3006c7246065990ca9b91f79826a)
2001-12-12 16:08:32 +00:00
Herb Lewis
e4553718bb add *.po32 to ignore list
(This used to be commit fe0db4c55f8bfc70004edd60a29359337fa40723)
2001-12-12 16:04:37 +00:00
Jean-François Micouleau
a5ba214479 added a -V[erbose] option to samsync. Decode a lot of information
I'm looking at chaining the credentials

	J.F.
(This used to be commit d49c8e4d3d64b48e243d0f517b9e7f037103af13)
2001-12-12 15:25:22 +00:00
Jean-François Micouleau
1c95d1d16b decoded SAM_DELTA 0x0e and 0x12.
One is an entry for the trusted domains
The other is an entry for the trusting domains

They are pretty basic, I'll improve them.

	J.F.
(This used to be commit 8d359e62138aa327cb00875dc446234ce4be6f02)
2001-12-12 11:38:57 +00:00
Jean-François Micouleau
c75d9409aa a ugly decoder for SAM_DELTA_DOM_INFO (0x0d)
a correct decoder for SAM_PRIVS_INFO (0x10)

this code is totally useless right now, it's just fun to decode those and
will save tpot some time.

	J.F.
(This used to be commit 314b675ed9ebacba9db25938c43cfa304462ebe2)
2001-12-12 09:43:56 +00:00
Andrew Tridgell
60b53b3f6f added "net time zone" command to show the timezone on a computer
(This used to be commit 4e2691b1c13a7db4770effa6eddeb19adb47f8ae)
2001-12-12 09:37:17 +00:00
Andrew Tridgell
65cfe6a492 pam_smbpass updates from a.bokovoy@sam-solutions.net
(This used to be commit 016e203a2c5286d8b48ab3eff0226affc203deaf)
2001-12-11 23:44:33 +00:00
Tim Potter
6526a42558 Oops, the -a option disappeared.
(This used to be commit 6194f874bbc50cb40228b29fb783a7716104b824)
2001-12-11 23:27:45 +00:00
Herb Lewis
fb8b642a98 add PATH_FLAGS to .po32 objects so dynconfig builds with smbwrapper
(This used to be commit 5bf6f9193774bcb6abb955efb346d2eb966a03d0)
2001-12-11 20:41:31 +00:00
Herb Lewis
b9f2c47956 sync with 2.2
added multiple include protection
added IRIX defines
(This used to be commit b9dbb38bf2d1fbe1ca5d0aa53b89f76844d6209c)
2001-12-11 20:20:30 +00:00
Jim McDonough
d9c3ef8450 Replace backslash with winbind separator before calling parse_domain_user(). Winbind separators other than backslash didn't work.
(This used to be commit 6688781331e046adc77783792fc009cda7c8b5b8)
2001-12-11 19:27:40 +00:00
Herb Lewis
ee4d682115 fix for IRIX compilers
(This used to be commit b110f57e49bcb4e3c648020850ee18d1888b9152)
2001-12-11 18:08:48 +00:00
Andrew Tridgell
331fa95b7a allow join of already joined domain
(This used to be commit 784a3f295176dc87c8befd76d5f2dc9ef1e9e383)
2001-12-11 12:29:03 +00:00
Andrew Tridgell
3607b3ccab prevent double free
(This used to be commit 3628a978d1881aa2a0939594b1c752475468965e)
2001-12-11 10:37:00 +00:00
Jeremy Allison
9bb0a964bf Fix up warnings. Make tdb_openXX() names const.
Jeremy.
(This used to be commit 9e3581827d91f5fd33fabd5ad4c9a79d63355731)
2001-12-11 08:31:58 +00:00
Jeremy Allison
dd324a5357 Tidyups to remove warnings on tdb standalone code.
Jeremy.
(This used to be commit b03aaddcf35dee93556013eaac9d99bc0f22256a)
2001-12-11 08:24:36 +00:00
Andrew Tridgell
d86b7f9dc3 handle systems without setenv()
(This used to be commit 87090652460e57703b40f21e9ed08c18770b61c3)
2001-12-11 06:17:01 +00:00
Andrew Tridgell
70095b09c3 handle a NULL hostname in cli_connect()
(This used to be commit a181f49b4269baa1752ce6ed4f9093e38d2d3ce5)
2001-12-11 05:48:27 +00:00
Andrew Tridgell
6939dd050b better error handling
(This used to be commit 75621d528433a9c1af3eada0b748dfbcfdb8ad62)
2001-12-11 05:47:26 +00:00
Andrew Tridgell
e5dbe13b58 added a comment about /bin/date
(This used to be commit 2183c1f3b09db5c078327050279130ac825c71f8)
2001-12-11 05:28:56 +00:00
Andrew Tridgell
32ba2c889f added a net time command. Allow display or set of system time based on
a SMB server

particularly useful for ADS is:

	net time set -S DOMAIN#1B

this makes kerberos clock skew problems go away :)
(This used to be commit b3ba2293d0e4eac3b6408c3abc3dcacfa3f67fe4)
2001-12-11 05:21:50 +00:00
Tim Potter
6cc5e2edc1 Modify winbindd to use authenticated user info from secrets.tdb when making
IPC$ connections to domain controllers.
(This used to be commit 1217ef28a6c18c085fcb2eac3bf04866c166d959)
2001-12-11 05:19:15 +00:00
Tim Potter
f4dfa9b6b2 Converted wbinfo to use popt instead of getopt - popt is very nice!
Added a --set-auth-user function to set a username and password that can be
used by winbindd when making connections to domain controllers.  This is
necessary when restrictions have been placed on anonymous connections
either through the RestrictAnonymous registry setting, or the win2k Local
Security Policy -> Security Settings -> Local Policies -> Security Options
-> Additional restrictions for anonymous connections.  (phew)

Two new keys are set in secrets.tdb: SECRETS/AUTH_USER and
SECRETS/AUTH_PASSWORD which hold the username and plaintext password of the
user to connect as.

To reset these values, run wbinfo --set-auth-user ""
(This used to be commit 507003522b70443f79b8b69a836dcd38d309cfca)
2001-12-11 05:18:36 +00:00
Andrew Tridgell
5ffe722a55 detect attempts to connect to names of the type NAME#xx and do a
netbios lookup for name NAME with node type xx.

This affects all our client progs. Very useful :)
(This used to be commit b4304c5231159fc6295c445f2eb4470c179b8d5e)
2001-12-11 05:16:48 +00:00
Andrew Tridgell
66d964c9fc allow overriding the local time in kerberos_kinit_password()
(This used to be commit cb9dbcef7cba9eb42f7b30b81c35142dc945d84f)
2001-12-11 05:15:52 +00:00
Tim Potter
4589265bb0 Removed unreferenced getopt() externals.
(This used to be commit c87d1ad32114200d3e678f8de88874c737f8e571)
2001-12-11 04:25:21 +00:00
Tim Potter
6a60668fe2 SAMR query sec obj returns different results depending on which sam handle
it is passed.  Not sure what these different contexts are called or what
they are used for.

 - if a rid is specified to samquerysecobj then use the sam user policy
    handle for that rid
 - if -d is specified then use the sam domain policy handle
 - otherwise just use the sam connect policy handle

JF, any ideas about this?
(This used to be commit 4ef50ef9f76219ea8acc29a1d740b31a1d7a1e04)
2001-12-11 03:03:45 +00:00
Tim Potter
44d423419a Grr - people who put const everywhere should fix up all the warnings they
generate.
(This used to be commit d1ebd259c8c06d467eb5ee305b21e9046f16e05b)
2001-12-11 02:23:14 +00:00
Tim Potter
31611dd2f4 Removed unused variable.
(This used to be commit 1dc0e9096db11bf9c8fa7ba0424ab1e96bb177dc)
2001-12-11 02:22:42 +00:00
Tim Potter
b872787f01 Doing some research into ACLs on the LSA and SAM policy objects.
- added lsaquerysecobj to rpcclient
 - renamed querysecobj to samquerysecobj
 - removed duplicated display_sec_acl() code from cmd_spoolss.c and
   cmd_samr.c and moved it into display_sec.c
(This used to be commit 59b2e3f408a5ff22f2d81a927d010a7df5f19f7f)
2001-12-11 02:17:26 +00:00
Andrew Tridgell
d033e53300 removed the start_ndx parameter from group enumeration
I tried testing this by lowering the buffer size in
cli_samr_enum_dom_groups() but that didn't work - I think this needs
more looking into
(This used to be commit 34328e30315e4b42087d0ee11ed0c3fb715bc250)
2001-12-11 01:04:13 +00:00
Tim Potter
d032059df9 Compile fix.
(This used to be commit 83caa883d79c2d954749d21fced808bda970ec56)
2001-12-11 00:11:11 +00:00
Andrew Tridgell
abeb0f50ea got rid of start_ndx from query_user_list()
(This used to be commit 1c909afe76566807fb576c965eb869f98e72f2bd)
2001-12-11 00:03:58 +00:00
Jean-François Micouleau
bf5a0e6717 NT_STATUS(0x80000005) maps to ERRDOS,234
J.F.
(This used to be commit 80e36549b61cc2bb5148f6abb175d31a0c7782a1)
2001-12-10 23:34:32 +00:00
Jean-François Micouleau
ecf7017eca added enum alias groups to rpcclient
(This used to be commit d4bc8f02f7dc856ffb29e95a81ffcc3a9d4b1695)
2001-12-10 22:30:31 +00:00
Andrew Tridgell
0c29881501 reinstated all the rap commands as top level commands until we get the
protocol switch mechanism in place
(This used to be commit d20c3717dd58745da082d1b4df7698c6d6c38e6c)
2001-12-10 22:25:21 +00:00
Andrew Tridgell
3d27d7b9f7 moved ccache location change into winbindd code
(This used to be commit be254eb13c4bf316823ed43db3ef9407f45ca23b)
2001-12-10 22:10:31 +00:00
Andrew Tridgell
273deacb32 robustness fixes and moved ccache location into winbindd_ads code
(This used to be commit 24aa09ff3dd128c6f12b4cb072943ff668a29a67)
2001-12-10 22:10:16 +00:00
Jeremy Allison
a427fafc1f Treat RAP codes differently.
Jeremy.
(This used to be commit 919b11a787145139e6255674179b2ff7e587475d)
2001-12-10 19:48:43 +00:00