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

3126 Commits

Author SHA1 Message Date
Andrew Bartlett
93995188d9 r4342: Fix a memory leak in init_globals().
Andrew Bartlett
(This used to be commit cc47b4c6fc932f8257506276eaa1a98a41055f8b)
2007-10-10 13:07:36 -05:00
Tim Potter
a42bbe3cdf r4341: Fix const warning.
(This used to be commit d8b1ba93a8ed0d5d01cb05b1c14353a0eca4de3e)
2007-10-10 13:07:36 -05:00
Stefan Metzmacher
5b07d37110 r4340: - simplify lsa_GetUserName() server code,
we don't need to do db lookups as we already known who the user is

metze
(This used to be commit cef0d1eb29c6c5d41591a5c0beaed1dc26961211)
2007-10-10 13:07:36 -05:00
Stefan Metzmacher
9be2e63315 r4339: - rename auth_guest to auth_anonymous
- don't use static const strings in the server_info

- fix segfault when auth_sam gets "" as username

metze
(This used to be commit 7fcbd483d4977cf6483f34ddd28e6c0182897ba2)
2007-10-10 13:07:36 -05:00
Stefan Metzmacher
ae42636167 r4338: reuse netlogon structs in the krb5 PAC
that simplifies the code a lot...

also add a note: we should fail the krb5 auth if there's no
PAC present (when heimdal is ready for that:-)

metze
(This used to be commit 532641a7003d23b034a253d166482f18c2de6191)
2007-10-10 13:07:36 -05:00
Volker Lendecke
61b1620fc4 r4335: Fix some potential memleaks, implement CreateDomAlias. Hmmmm. Isn't there
enough stuff to do in 3_0??? ;-)

Volker
(This used to be commit c0fa7a92d9f602dc50801a9827e121c2b095a336)
2007-10-10 13:07:35 -05:00
Volker Lendecke
7f773c9ae8 r4332: Fix a potential memleak.
Volker
(This used to be commit 8f2b9c9d320dbea197808081528477d7e4c816d1)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
c533379c90 r4328: mark the talloc data as DATA_BLOB
metze
(This used to be commit ad84e3b2e3b48406576a8ba2ebfd218cddae135d)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
3e7c0e10cf r4327: add usefull function if you don't want that the data will talloc_memdup()'ed
metze
(This used to be commit 1f01e370b192fc8fa51eb3a46e7b45c993aa9b80)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
4def245b79 r4326: fix memory leak
metze
(This used to be commit 1ceeb77fc716729c69f2dba4a84579c366eefa1c)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
7224971727 r4325: add the GENSEC_FEATURE_DCE_STYLE flag
this will be used by krb5 dcerpc auth

metze
(This used to be commit 04dc7fb9b24a1e38f31559ec6032701a176209ae)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
e0cac67fd4 r4324: add some more ads constants before I forget them
metze
(This used to be commit 705af52cb163de780c4ba5a1d84acd6c53909918)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
a86387d42c r4323: - implement the lsa_GetUserName() server call
- give lsa_lookup_sid() a chance with foreign SIDS
  returning NT_STATUS_NO_MEMORY makes no sense here
  as the ldb_msg_find_string() doesn't allocate the string

metze
(This used to be commit b43f34e87354c82a3392a0ba99b38b4c7185e47c)
2007-10-10 13:07:35 -05:00
Stefan Metzmacher
447d088595 r4322: use a nicer name
metze
(This used to be commit f8ea82cbd1856f589132e2a96b8d658745036b3e)
2007-10-10 13:07:34 -05:00
Stefan Metzmacher
6fbf487ec0 r4321: objectClass trustedDomain uses "securityIdentifier" for the sid
also explicit tell the fill_info code what kind of object the current
result is.

metze
(This used to be commit 6d74d31e50cd8f9d37fca53ef32bd50952a3a759)
2007-10-10 13:07:34 -05:00
Stefan Metzmacher
33cbe33678 r4320: fix locations of new trusting domains and domsin controller
computer accounts

metze
(This used to be commit f75c2004a0fc889ce5d96790f7d1d5031bce3992)
2007-10-10 13:07:34 -05:00
Andrew Tridgell
73b3e7b286 r4319: make it easy to use valgrind in the test_posix.sh test suite
(This used to be commit 7c09a3ea581e08bb34972d657d11d7e03b832b65)
2007-10-10 13:07:34 -05:00
Stefan Metzmacher
bf3067ea0d r4318: add missing template for trusting domains
metze
(This used to be commit 32264c6c30c67372ce6f0b2f0914c43a1a6eb5ea)
2007-10-10 13:07:34 -05:00
Andrew Tridgell
8e90f88c25 r4317: check the count of replies in the os2 ea_list torture test
(This used to be commit 10861b3fa0cbba7f5e0ec3377431a85608a13a32)
2007-10-10 13:07:33 -05:00
Andrew Tridgell
101d0333a3 r4316: - now that the trans2 code properly supports multi-part requests, we can set
a maximum sized max_data in libcli trans2 code

- fixed string termination in the EA_LIST trans2 findfirst level
(This used to be commit a2a5f147f4faac8a48ff8f1b3e5f1334c92575bb)
2007-10-10 13:07:33 -05:00
Andrew Tridgell
fa4271fb39 r4315: use the remote hosts max_xmit, not the local hosts, in calculating max trans2 data sizes
(This used to be commit 827008cfebf29d081b457ba7162d89c8150cb24b)
2007-10-10 13:07:33 -05:00
Andrew Tridgell
a66a985cde r4314: added ACL checking on unlink
(This used to be commit f25c469693517ed993e0379d8b07cd7eb235a669)
2007-10-10 13:07:33 -05:00
Andrew Tridgell
de2ccc5ca9 r4313: fixed a bug in handling new xattrs in the tdb xattr backend
(This used to be commit c66b5a100c1b83adf034087fe2ce49fc77d84161)
2007-10-10 13:07:33 -05:00
Andrew Tridgell
6bc971d8b5 r4310: fixed the authority_name field in lsa_GetUserName()
(This used to be commit f78506697ad23456fcac6e8916d0dad05b0df6cc)
2007-10-10 13:07:33 -05:00
Stefan Metzmacher
c2f94222e9 r4309: idl and torture test for lsa_GetUserName()
why does samba3 return domain_name as in the unknown_name field in the code
and on the wire it returns DCERPC_FAULT_OP_RNG_ERROR?

all of my test machines NT4,W2K,W2K3,XP returned NULL

and if I file the string in the .in.* the server echos the strings back
and returns NT_STATUS_INVALID_PARAMETER

metze
(This used to be commit 67e765b7e984d7aac2a7786b5bd0c80d10d6de5d)
2007-10-10 13:07:33 -05:00
Stefan Metzmacher
e67b439264 r4308: [out,ref] pointer needs to set (don't corrupt the stack and segfault)
metze

PS: <tridge> "silly tridge forgot a out [ref] var" :-)
(This used to be commit a46c68a80001f5fe9d37cc4ce374071b6fe63076)
2007-10-10 13:07:32 -05:00
Andrew Tridgell
8d3d7534f2 r4303: a bit more consistent help on privileges commands in smbclient
(This used to be commit 2d2e9e6373be153f991ee899e9d66cd3979e309f)
2007-10-10 13:07:32 -05:00
Andrew Tridgell
47021d0c69 r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
given my lack of gtk experience, there are no guarantees.
(This used to be commit 11277b38a473022eb59f896d5e23aa1e56786008)
2007-10-10 13:07:32 -05:00
Jelmer Vernooij
9547649006 r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human-editable) format in
the ldb registry backend.
(This used to be commit 6eafd055d1a7d45734a0112228e18ee59d1f7867)
2007-10-10 13:07:32 -05:00
Jelmer Vernooij
616cf70128 r4298: Update to credentials.h after feedback from Andrew Bartlett
Move pack/unpack of values in ldb registry backend to seperate functions
(This used to be commit ceb4e92735f6dae96bb0b9d98211c9808159e56a)
2007-10-10 13:07:32 -05:00
Stefan Metzmacher
bb072199b1 r4288: don't use struct dcerpc_interface_table anymore in the
main rpc server code. let the backends specify a ndr_push/ndr_pull function
like we already do with the dispatch() function.

this allows an interface implmentation to work as real proxy
without needing to know the idl for an interface that means
just the plain decrypted payload can be forwarded

If someone want to write such a backend, patches are wellcome

metze
(This used to be commit a150bdf140d9165a05cbc7cac40b6e3c03a7bd3c)
2007-10-10 13:07:32 -05:00
Andrew Tridgell
545c190d2a r4284: fixed a problem with very large EA lists and OS/2 clients. These
checks on allocations need to go in a lot more places, but at least
this is a start.
(This used to be commit 99b0dac2292d72e3a77f105e8f2ef5a3838d7e1b)
2007-10-10 13:07:32 -05:00
Andrew Tridgell
2057121d14 r4283: adding a privilege that an account already has is not an error
(This used to be commit 2a4c562896aabe391d6f675433db2e519f0ce4b0)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
04e1d5f77c r4282: removed a spurious error message now we remove index entries in the modify call
(This used to be commit 58fcc326241e73cc8a122e6130b5ff0d6a3b9232)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
cf4298874c r4281: fixed an ldb indexing bug in ldb found by volker.
index entries were not always being removed on modify
(This used to be commit 9c668e7b43dc2d82d3d639b64c53e887723ccba7)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
134769f9ad r4280: added server side support for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()
these are the last of the server side privileges functions. We should
now have a complete privileges implementation.
(This used to be commit 76db300232f5557377dca059d17ea3c28a0a425c)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
e52b216473 r4279: added IDL and test code for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()
(This used to be commit 705b870c73995609c8d3ebb24418538bfe20c05b)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
424844da32 r4278: - added server support for lsa_EnumPrivsAccount()
(This used to be commit a80c82d2635fce42482982d904f265199a000e10)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
9b3ea6dc4e r4277: - added server support for lsa_EnumAccounts()
- expanded the lsa test suite to better test lsa_EnumAccounts()
(This used to be commit bafdb1772977d98fd57bb31a328af7cb1deee788)
2007-10-10 13:07:31 -05:00
Andrew Tridgell
c6a420fd1e r4276: added server side support for lsa_OpenAccount()
(This used to be commit 4716334502a245bc1ffafd3a8a00662cfbdf8ba8)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
f7b794c921 r4275: improve the share type info
(This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
8fe7d2974c r4274: make the prototype RAP netshareenum call return something a bit more sensible.
(This used to be commit b2e29756c2084f11d841d027e7d32952daae18d0)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
dfb402e4a1 r4269: expanded the note about what you need on linux for xattr support
(This used to be commit 57394f44e9fa2070a6cb9ce2fb31431ffae45cb9)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
469fd3868b r4267: fixed the charset code to use the builtin_functions.
Jelmer, please be more careful about testing new code. Your charsets
register change completely broke charset handling on systems without
iconv, and slowed every system down as the builtins were not being
used at all.
(This used to be commit 0022b4d24c7bb649fd69fffca04c022ea6b33634)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
114bcfe837 r4264: fix acl handling on systems without xattr support
(This used to be commit 89845388ea82d9bfbdc6ca8da40f47437a270400)
2007-10-10 13:07:30 -05:00
Andrew Tridgell
ed42a64901 r4263: added support for the trans2 RAW_SEARCH_EA_LIST information
level. This is quite a strange level that we've never seen before, but
is used by the os2 workplace shell.

note w2k screws up this level when unicode is negotiated, so it only
passes the RAW-SEARCH test when you force non-unicode
(This used to be commit 25189b8fbf6515d573e3398dc9fca56505dc37b9)
2007-10-10 13:07:29 -05:00
Andrew Tridgell
b02c5abfb4 r4262: a sniff from kukks showed that the FILE_ATTRIBUTE_NORMAL handling in
pvfs was not correct. This should fix a xcopy bug on OS/2.
(This used to be commit 7251f1fcdd8980e9c49a58e665374025e07bb8d0)
2007-10-10 13:07:29 -05:00
Andrew Tridgell
b706555b3a r4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo
level. Interestingly, this level did now show up on our trans2 scanner
previously as we didn't have the FLAGS2_EXTENDED_ATTRIBUTES bit set in
the client code. Now that we set that bit, new levels appear in
windows servers.
(This used to be commit 0b76d405a73e924dc2706f28bbf1084a59c9b393)
2007-10-10 13:07:29 -05:00
Andrew Tridgell
daae3bbb29 r4247: two more places that need the unlink hook
(This used to be commit 795897b64f3c63baaf53a36eb1611293c2fd8974)
2007-10-10 13:07:29 -05:00
Andrew Tridgell
b6a515aca4 r4246: some very brief notes to myself on solving the case insensitivity
problem, and the del *.* mangling problem. I promised jra that I would
write a longer description of these soon.
(This used to be commit b6827a03e77fd1db4cbd16d7b7fb4328ccfe7a46)
2007-10-10 13:07:28 -05:00