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

1586 Commits

Author SHA1 Message Date
Stefan Metzmacher
45a69c44e7 r2005: fix compiler warnings
metze
(This used to be commit 71992c90cc35179ea8783d770c89b16618e1adc6)
2007-10-10 12:58:17 -05:00
Stefan Metzmacher
7d1a0239bb r2004: remove unused file
metze
(This used to be commit 46d5ce350aeae352a9a14b14b968c299f11272f2)
2007-10-10 12:58:16 -05:00
Andrew Tridgell
694ac65faa r2003: got rid of next_token_nr(), which involved some horrible globals
and nasy pointer tricks.

this involved fixing some of the internals of smbclient
(This used to be commit 126fec6169f9412932c82e7675840476132bce87)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
af057bdf84 r2000: remove unused var
metze
(This used to be commit 5d5b65173949e51c88c5e9ef8768d4e1c14be17c)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
94b7bf91fe r1999: fix compiler warning
metze
(This used to be commit 8c9c702bc3328c3826985711c4a30b878cf8b02e)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
38188de793 r1998: fix compiler warning
metze
(This used to be commit bf06f476dbdfbcb38ccbd8606e622097015c2b3d)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
e89e5eee38 r1997: fix compiler warning
metze
(This used to be commit eb9de893b8b93857c648f4df907aac9e9cb199dc)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
b0856b8ad0 r1996: fix compiler warnings
metze
(This used to be commit dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
8460fc7df9 r1995: a ndrdump file from abartlet make it clear that this isn't a pointer
to a uint32, there're two uint32 with 0x00000000

metze
(This used to be commit 80f27766cb6d2c4e00232f7e3d5cde75ad84d094)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
ae95563caf r1994: fix compiler warning
metze
(This used to be commit a3a4b9c9ea2692b3ca85d9a4a094e36609831f19)
2007-10-10 12:58:15 -05:00
Andrew Bartlett
aca6a1e1ee r1993: Allow WinXP domain logon to progress a bit further (it seems broken for me).
Fix indent, and add a few more useful debug messages.

Send a fault, if the bind is not accepted - don't just leave the client hanging.

Andrew Bartlett
(This used to be commit 486215edc1148ad754632be37760dc0d38b0340d)
2007-10-10 12:58:15 -05:00
Andrew Bartlett
0e5260c4f5 r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
(This used to be commit a8e76085a7414068aa96b6544b28afc1e1e1010c)
2007-10-10 12:58:15 -05:00
Andrew Bartlett
39a3d5eedc r1991: After finding a talloc inconsistancy is a very good time to smb_panic(),
it can only indicate programmer error, and doing a smb_panic() ensures
an automatic backtrace (and eventually an abort()).

Andrew Bartlett
(This used to be commit b2d93d0010d80f158760f53273853de2439c3062)
2007-10-10 12:58:15 -05:00
Andrew Bartlett
dcd43a4cbe r1990: Fix breakage caused by the recent talloc changes. (Failure to process
an SPNEGO login from WinXP at least).

talloc_asprintf_append() lost an argument, but because TALLOC_CTX is
now a void*, this was not picked up by the compiler.

I've tested the login (asn1), but not the registry/gtk changes.

Andrew Bartlett
(This used to be commit 4294be44057124568fe1d176702056bb62ad3214)
2007-10-10 12:58:15 -05:00
Andrew Tridgell
ca885cb2d1 r1989: fixed a couple of bugs in code that assumes sizeof(time_t) == sizeof(int)
(This used to be commit cc3d420c33152c8e9026dc39a7322d11edb3c774)
2007-10-10 12:58:15 -05:00
Paul Green
0be0e8effc r1988: Let Samba use all POSIX features available on VOS.
paulg
(This used to be commit a489ea5ebec852c33c4d659893144b0577ee8af1)
2007-10-10 12:58:15 -05:00
Tim Potter
ef7c734976 r1986: Janitor for myself. Merge -r1907:1908 from SAMBA_3_0 branch.
(This used to be commit 99f7feec0ab545271f49ea3ab811eb3022aa03db)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
b7e1ea20dc r1985: take advantage of the new talloc in a few more places
(This used to be commit 6ffdfd779936ce8c5ca49c5f444e8da2bbeee0a8)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
b45f4ebbb8 r1984: this change is what you should read to understand the new talloc()
It simplifies our structure handling a lot, making the code shorter
and easier to understand. Look at the diff carefully and see if you
can understand it. If you're still confused then please ask.
(This used to be commit 03c341aca7f09cb1f0d33ec65e074e6a00caa30f)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
b83ba93eae r1983: a completely new implementation of talloc
This version does the following:

  1) talloc_free(), talloc_realloc() and talloc_steal() lose their
     (redundent) first arguments

  2) you can use _any_ talloc pointer as a talloc context to allocate
     more memory. This allows you to create complex data structures
     where the top level structure is the logical parent of the next
     level down, and those are the parents of the level below
     that. Then destroy either the lot with a single talloc_free() or
     destroy any sub-part with a talloc_free() of that part

  3) you can name any pointer. Use talloc_named() which is just like
     talloc() but takes the printf style name argument as well as the
     parent context and the size.

The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.

So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
(This used to be commit e35bb094c52e550b3105dd1638d8d90de71d854f)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
326f562e72 r1982: i is not initialised or used
(This used to be commit db4bc88f9aeaa59f08b9b447a8b2256c9c9c5fb0)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
43afd3fda8 r1973: for systems that don't have strtoull() try strtouq(). This should fix
the build for some BSD varients.
(This used to be commit 73e9ee791472bb212efe0eb4744daa91678263ad)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
e205ffd83c r1972: cmdline_auth_info does not need to be declared global
(This used to be commit d07dbdb22acc4c9cafb7141486fbf162d9f8164e)
2007-10-10 12:58:14 -05:00
Stefan Metzmacher
6766809ba8 r1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
(this need to be done more generic for all dcerpc calls,
 but for now I just need it in this 2 places)

metze
(This used to be commit d965f84f69ada2a10e9159aa1743c0bee7790488)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
8115bf6e2c r1957: add cmdline_set_* functions
and let smbclient use the cmdline _* functions

metze
(This used to be commit ffb87ebc33e728bf8506383f95b80605adec3c68)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
cc5b454aa7 r1952: change the _RPC levels into _SAMR
because we may have other rpc levels in future

add more comments about what's going on

check the rsult of samr_OpenUser

metze
(This used to be commit 741f95909b42eb55a251e5de991e5b3185714e3e)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
32ec317c90 r1951: add 'net password set' call
use it like:
net password set user
net password set DOM\\user
net password set user pass
net password set DOM\\user pass
net password set -U DOM\\Administrator%admpass DOM\\user pass

metze
(This used to be commit b660e5b9e6236c996550973e9bde1e80a8eed775)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
a5ca84508c r1950: implement libnet_SetPassword_rpc()
this currently tries only SetUserInfo26
the fallback is not yet done

metze
(This used to be commit af6b5673b05e7fc1c876a248f99bc71faeec9538)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
c2e2921bad r1949: provide functions to access the username, userdomain and userpassword
now you're prompted when cmdline_get_userpassword() is called
and the password is not yet known

metze
(This used to be commit d14a01533c5d465ff3709c48576b798b3be807e0)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
5a8f826653 r1947: fix cup & paste errors
metze
(This used to be commit 1c72f30650655b03fb04a34188a959dfe917b5ec)
2007-10-10 12:58:13 -05:00
Simo Sorce
333aaf01e8 r1944: put ldif functions in a separate file
(This used to be commit 8be31e5c854e4462163b97b897ff41de95f181c4)
2007-10-10 12:58:13 -05:00
Stefan Metzmacher
5a5f9c8aa7 r1943: don't use the with --enable-*developer selected flags for
the configure tests.

and test if the compiler really understand the options,
and clear them when not

this means we can maybe use --enable-developer on the build farm now

metze
(This used to be commit 35624842c7b25c404e6203564005e3098e4249b4)
2007-10-10 12:58:12 -05:00
Andrew Tridgell
8d6e233f66 r1941: - fixed an allocation error with querying security descriptors remotely
- print the received security_descriptor in the smbclient "acl" command

- make sure we zero the alignment data in nttrans packet sends
(This used to be commit 8925b8b2193905d084e1bfaaa3235ed7f9d1eb55)
2007-10-10 12:58:12 -05:00
Jelmer Vernooij
454e76dec2 r1929: CHeck if cpp on AIX likes /* */ better then //
(This used to be commit 8bf6841a8e9c7fa6d12c6631c9c845edbe52a455)
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
011ff131f8 r1928: give up on NT_STATUS_PASSWORD_RESTRICTION
(NOTE: this code pass isn't called yet,
       because pidl mixes the NTSTATUS of transport and request layer,
       and will be fixed soon)

metze
(This used to be commit 84c06d9ab0366772f71be088c53da9618e2555fe)
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
b2f39d19e3 r1927: allow the domain to be a ip address
metze
(This used to be commit d0e518e7d0edcf64a3d7173ff8d38f221db1ce6e)
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
618368ead6 r1926: fallback to other SAMR ChangePasswordUser levels
1. ChangePasswordUser3
2. ChangePasswordUser2
3. OemChangePasswordUser2
4. ChangePasswordUser (not implemented complete)

metze
(This used to be commit eb93d38de0dab0d0ad5adf8cfb69623bc35e942a)
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
bd225f8c28 r1925: now we lookup the domain controller
and fallback to a workstation name

metze
(This used to be commit 2012d90f268f69a3a4e5890a0f3615237853bd0b)
2007-10-10 12:58:11 -05:00
Volker Lendecke
3ccba74549 r1920: This needs more inspection by the IDL experts. Reverting my last change.
Volker
(This used to be commit 5d9b5a2e58cb271ea38de96e2b4b252ded2b1cdf)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
9d62046b0e r1919: paasword change basicly works now:-)
but we need to find the real pdc for the users domain
and fallback to other levels

metze
(This used to be commit f1b9c1f3dd0fb927c065541da900ae43e0018a62)
2007-10-10 12:58:11 -05:00
Volker Lendecke
c3ec4582ba r1917: Attempt to push the AIX machine a bit further in the compile. I'm not sure,
but pidl there says "syntax error".

Volker
(This used to be commit c26dc367e4ef2619016d8063a9dfcc7a94be865b)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
ad5acba254 r1916: return a more clear error, we are miss configure in this case
metze
(This used to be commit a908f831cb9dd265f9b183512053f9e608feec3d)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
124e00068f r1915: use popt's cmdline_auth_info to fill the net_context
and print the user domain when prompting for a new password

metze
(This used to be commit aedb2e9e1c418a7ac3cc18299707ae9146e4047a)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
5c9c6b4741 r1914: use common popt stuff in net
metze
(This used to be commit 52b866c40332ab408c57a0eab415e0755e4b5081)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
927e8242c1 r1913: add --version back
metze
(This used to be commit a1bb734009571c7a052a15507a70137ac31911ba)
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
d139dc808a r1912: move popt_common.h
metze
(This used to be commit ecf6be894fc47f9e00f46531e06ef20e11115c0f)
2007-10-10 12:58:10 -05:00
Stefan Metzmacher
bca24a19eb r1911: merge a few popt parameters from 3.0 move some to better places
and deal with users DOMAIN and lp_workgroup() of the local workstation

metze
(This used to be commit 1fc0100e44a8640cfc15effb99f5824cb7817da8)
2007-10-10 12:58:10 -05:00
Stefan Metzmacher
f42f061236 r1910: this should not be a local var in this block
metze
(This used to be commit 0164cac6df46ca5996aae30b8c48a602999f7e0b)
2007-10-10 12:58:10 -05:00
Stefan Metzmacher
f547d2c4c3 r1909: nicer format
metze
(This used to be commit e9e5fb2cb0b428de11d8e91da8b44394b6221a43)
2007-10-10 12:58:10 -05:00
Stefan Metzmacher
e60139b81f r1907: init the configuration
and fix compiler warning

metze
(This used to be commit c358f11406e8aca68325a40c6bbed78c53ac024f)
2007-10-10 12:58:10 -05:00