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

90 Commits

Author SHA1 Message Date
Andrew Tridgell
2fdf33c6e5 r871: add a comment about how samdb_set_password() works 2007-10-10 12:56:14 -05:00
Andrew Tridgell
abe90bc7ba r870: we should issue a rpc fault OP_RANGE_ERROR not a WERR_NOT_SUPPORTED for
functions we don't implement yet so that we don't put uninitialised
result data on the wire (found with valgrind)
2007-10-10 12:56:14 -05:00
Andrew Tridgell
2712e26a5d r868: we should issue a rpc fault OP_RANGE_ERROR not a WERR_NOT_SUPPORTED for
functions we don't implement yet so that we don't put uninitialised
result data on the wire (found with valgrind)
2007-10-10 12:56:14 -05:00
Stefan Metzmacher
7fffc124e3 r846: convert DCESRV subsystem to a config.mk file
metze
2007-10-10 12:53:54 -05:00
Andrew Tridgell
2ba7ff824c r839: password set/change in the samr server is complex enough that it
deserves its own C module
2007-10-10 12:53:54 -05:00
Andrew Bartlett
7c69a85984 r816: - Make use of tridge's new samdb_result_sid_prefix() helper function.
- Remove legacy sid_to_string (which contained a memleak)

 - Remove some unused parts of lib/util_sid.c

Andrew Bartlett
2007-10-10 12:53:52 -05:00
Andrew Tridgell
255d6e77e7 r812: added a new samdb_replace() call that simplifies the code in the main samr server a bit. 2007-10-10 12:53:51 -05:00
Andrew Tridgell
24bbf9f1bc r796: fixed samr_OemChangePasswordUser2() to replace attributes, not add 2007-10-10 12:53:51 -05:00
Andrew Tridgell
c1a65f83f6 r793: - don't make templates members of any class that would make them show
up in searches like "objectclass=user"

 - auto-add the computer objectclass for computer accounts on create

 - added two types of password change call in samr server

 - reset last_fault_code before each dcerpc call
2007-10-10 12:53:51 -05:00
Simo Sorce
c0c1596dbd r789: we return wrong number of entries 2007-10-10 12:53:50 -05:00
Stefan Metzmacher
4bfecf337b r758: just move the util file to the additional object file list
metze
2007-10-10 12:53:49 -05:00
Andrew Bartlett
f9f581b580 r754: Implement the SetPassword operation on the netlogon pipe.
This involves allowing the password set code in samdb to take an
already hashed password, and some fixes to our torture code.

Andrew Bartlett
2007-10-10 12:53:48 -05:00
Andrew Bartlett
b886cb65f8 r745: Move netr_ServerPasswordSet up with the other secure channel
management functions, and make sure to include the fault until this is
no longer a stub.

Andrew Bartlett
2007-10-10 12:53:46 -05:00
Andrew Bartlett
94624e519b r743: Start on a NETLOGON server in Samba4.
Currently this only authentiates the machine, not real users.

As a consequence of running the Samba4 NETLOGON test against Samba4, I
found a number of issues in the SAMR server, which I have addressed.
There are more templates in the provison.ldif for this reason.

I also added some debug to our credentials code, and fixed some bugs
in the auth_sam module.

The static buffer in generate_random_string() bit me badly, so I
removed it in favor of a talloc based system.

Andrew Bartlett
2007-10-10 12:53:46 -05:00
Stefan Metzmacher
c78a2ddb28 r665: merge over the new build system from my tmp branch
to the main SAMBA_4_0 tree.

NOTE: that it's not completely ready, but it's functional:-)

metze
2007-10-10 12:53:36 -05:00
Stefan Metzmacher
c39e450702 r649: return unknown interface when the client not yet
binds succesful to an interface

metze
2007-10-10 12:51:56 -05:00
Stefan Metzmacher
81b94718e4 r626: make the code a bit more readable
metze
2007-10-10 12:51:56 -05:00
Andrew Tridgell
6c3f22a685 r625: - handle passwords longer than length 14 (thanks to abartlet for pointing out the bug)
- delete unicodePwd if not storing a plaintext password
2007-10-10 12:51:56 -05:00
Andrew Tridgell
cb070b9084 r623: setUserInfo level 24 (password set) now works in the SAMR server. This includes all
of the password complexity, password history and other password restrictions.
2007-10-10 12:51:55 -05:00
Volker Lendecke
945d747860 r615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,
samr_DeleteDomainGroup.

I've added the hidden attribute numMembers that must be maintained by
Add/DelGroupMember for the GroupInfoAll query.

Volker
2007-10-10 12:51:52 -05:00
Andrew Tridgell
0250f5d6aa r608: - a couple of very minor fixes to the CreateGroup code
- added samr_GetUserPwInfo() samr server call
2007-10-10 12:51:51 -05:00
Volker Lendecke
59241c0c9a r605: Implement CreateDomainGroup, essentially cut&paste from CreateUser2.
Volker
2007-10-10 12:51:50 -05:00
Andrew Tridgell
ec0a51898f r601: added the server code for all the samr_SetUserInfo and samr_QueryUserInfo levels except for the password
set levels.

This means that a large part of the RPC-SAMR torture test now runs correctly against Samba4
2007-10-10 12:51:50 -05:00
Andrew Tridgell
defaf0d817 r596: log all ldb searches at level 4 in samdb 2007-10-10 12:51:49 -05:00
Andrew Tridgell
994baba7eb r595: nicer handling on max_size multiplier 2007-10-10 12:51:49 -05:00
Andrew Tridgell
e0db9659a8 r587: added server code for samr_EnumDomainUsers, and started adding
samr_SetUserInfo and samr_QueryUserInfo
2007-10-10 12:51:48 -05:00
Andrew Tridgell
10b6e0011b r578: initial server side implementation of samr_CreateUser(),
samr_CreateUser2(), samr_LookupNames(), samr_OpenUser(),
and samr_DeleteUser()

this uses a user template in the SAM db, of objectclass "userTemplate"
and dn CN=TemplateUser,CN=Templates,$BASEDN. Using a template allows
an admin to add any default user attributes that they might want to
the user template and all new users will receive those attributes.
2007-10-10 12:51:48 -05:00
Andrew Tridgell
b1cd98188d r514: added a context pointer to the samdb interface, as suggested by
metze. Also added a reference count so that a client can close the
connection handle and still used a derived domain handle.
2007-10-10 12:51:46 -05:00
Andrew Tridgell
74b89d5f96 r513: added a generic ldb debug system to allow the Samba debug functions to
be cleanly interfaced to ldb
2007-10-10 12:51:46 -05:00
Andrew Tridgell
a3edd4bca8 r510: converted the samdb code to give ldb a talloc context rather than letting ldb use malloc 2007-10-10 12:51:46 -05:00
Andrew Tridgell
bba0044a51 r466: implemented samr_OpenDomain() and samr_GetDomPwInfo() server side calls
if you take a look at samr_GetDomPwInfo() then you will get a fairly good idea
of what I am planning for the database oriented SAMR server implementation.
2007-10-10 12:51:44 -05:00
Andrew Tridgell
d96b68169a r465: we need common.h in two more rpc server pipes 2007-10-10 12:51:44 -05:00
Andrew Tridgell
a4df5c7cf8 r464: a big improvement to the API for writing server-side RPC
servers. Previously the server pipe code needed to return the RPC
level status (nearly always "OK") and separately set the function call
return using r->out.result. All the programmers writing servers
(metze, jelmer and me) were often getting this wrong, by doing things
like "return NT_STATUS_NO_MEMORY" which was really quite meaningless
as there is no code like that at the dcerpc level.

I have now modified pidl to generate the necessary boilerplate so that
just returning the status you want from the function will work. So for
a NTSTATUS function you return NT_STATUS_XXX and from a WERROR
function you return WERR_XXX. If you really want to generate a DCERPC
level fault rather than just a return value in your function then you
should use the DCESRV_FAULT() macro which will correctly generate a
fault for you.

As a side effect, this also adds automatic type checking of all of our
server side rpc functions, which was impossible with the old API. When
I changed the API I found and fixed quite a few functions with the
wrong type information, so this is definately useful.

I have also changed the server side template generation to generate a
DCERPC "operation range error" by default when you have not yet filled
in a server side function. This allows us to correctly implement
functions in any order in our rpc pipe servers and give the client the
right information about the fault.
2007-10-10 12:51:44 -05:00
Andrew Tridgell
e2002e40a5 r458: this is the (very primitive) beginnings of a SAMR server for
Samba4. I'm committing this now so I can get comments on the approach.

Note that you need to do something like this to initialise the SAM db:

 edit script/provision.pl
 script/provision.pl > provision.ldif.out
 bin/ldbadd /path/to/private/sam.ldb provision.ldif.out
2007-10-10 12:51:44 -05:00
Andrew Tridgell
f3799e7720 r445: fixed the bind_nak code 2007-10-10 12:51:42 -05:00
Andrew Tridgell
62f59d1180 r441: added an example of how to use the remote rpc interface 2007-10-10 12:51:42 -05:00
Stefan Metzmacher
3e911db7c2 r424: let this code compile on every machine hopefully
metze
2007-10-10 12:51:37 -05:00
Andrew Tridgell
6fbbfc4462 r374: allow for a policy_handle fetch using a handle type of
DCESRV_HANDLE_ANY. This is needed for operations like samr_Close()
that take any handle type.
2007-10-10 12:51:35 -05:00
Tim Potter
0be7a866dc r355: Fix a bunch of compiler warnings in the registry code. 2007-10-10 12:51:34 -05:00
Stefan Metzmacher
f8605b39ab r286: use talloc_array_p() instead of talloc()
add some more WERR_NOT_SUPPORTED stubs to pass our torture tests
(wkssvc and srvsvc)

metze
2007-10-10 12:51:19 -05:00
Stefan Metzmacher
7e42465192 r138: fix typo
metze
2007-10-10 12:51:10 -05:00
Jelmer Vernooij
3adffa0217 r128: Another registry update. Changes:
- Start with the LDB backend
- The API is now more windows-like, which should make it easier to use
  in rpc_server
- Added a GTK+ front-end
- Added some more IDL

More updates will follow, especially in the RPC field..
2007-10-10 12:51:09 -05:00
Stefan Metzmacher
975bf13f17 r127: NetWkstaGetInfo level 101
and return WERR_ACCESS_DENIED for level 102, 502 so does my winXP box
for a non-admin user

metze
2007-10-10 12:51:09 -05:00
Stefan Metzmacher
6f213a3494 r126: - add first srvsvc and wkssvc server side stuff
- we know can browse the server via the Windows Explorer

- some little fixes to the winreg server pipe

metze
2007-10-10 12:51:09 -05:00
Andrew Tridgell
af0c21c1e1 r67: added a destroy hook in the policy handle -> wire handle code to allow backends
to cleanup handle data
2007-10-10 12:50:41 -05:00
Jelmer Vernooij
1396db8537 r62: Fix the build 2007-10-10 12:50:41 -05:00
Jelmer Vernooij
ae2b63b6f1 r61: - Implement first call in the winreg rpc server
- Add some initial implementation of the ldb backend
- More checks in the winreg torture test
2007-10-10 12:50:41 -05:00
Gerald Carter
11717ae912 r42: importing .cvsignore files 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
98224f5436 r31: More registry updates. regdiff/regpatch work now. 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
7cab3a00d7 r20: Add the registry library. Still needs a lot of work,
see source/lib/registry/TODO for details.
2007-10-10 12:50:33 -05:00