1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

391 Commits

Author SHA1 Message Date
Günther Deschner
ceb3b6a0a3 Use pidl for _samr_Connect4().
Guenther
2008-02-04 17:53:51 +01:00
Günther Deschner
35a691c259 Use pidl for _samr_Connect2().
Guenther
2008-02-04 17:53:51 +01:00
Günther Deschner
79c3aa6588 Use pidl for _samr_Connect().
Guenther
2008-02-04 17:53:50 +01:00
Günther Deschner
6bfd76002f Use pidl for _samr_SetSecurity().
Guenther
2008-02-02 13:37:19 +01:00
Günther Deschner
c61cba9726 Use pidl for _samr_QuerySecurity().
Guenther
2008-02-02 13:37:19 +01:00
Günther Deschner
a142fe21e3 Use pidl for _samr_ChangePasswordUser2().
Guenther
2008-02-01 23:26:09 +01:00
Günther Deschner
36f52b631c Use pidl for _samr_CreateUser2().
Guenther
2008-02-01 16:29:20 +01:00
Günther Deschner
c53bfd7425 Use pidl for _samr_CreateDomainGroup().
Guenther
2008-02-01 16:29:20 +01:00
Günther Deschner
622d529c45 Use pidl for _samr_CreateDomAlias().
Guenther
2008-02-01 16:29:20 +01:00
Günther Deschner
31d5a3aaa4 Use pidl for _samr_DeleteDomAlias().
Guenther
2008-02-01 10:04:35 +01:00
Günther Deschner
b8bf051bdd Use pidl for _samr_DeleteDomainGroup().
Guenther
2008-02-01 10:04:26 +01:00
Günther Deschner
86827e3744 Use pidl for _samr_DeleteUser().
Guenther
2008-02-01 10:04:13 +01:00
Günther Deschner
e74ad425ff Use pidl for _samr_OpenGroup().
Guenther
2008-02-01 09:57:30 +01:00
Günther Deschner
1a98282d2c Use pidl for _samr_OpenAlias().
Guenther
2008-02-01 09:57:20 +01:00
Günther Deschner
ea3a096bcd Use pidl for _samr_OpenUser().
Guenther
2008-02-01 09:57:10 +01:00
Günther Deschner
15801832ec Use pidl for _samr_OpenDomain().
Guenther
2008-02-01 09:56:59 +01:00
Günther Deschner
7d369906ec Fix _samr_Close().
A good example that work in this area needs very careful testing :)

Guenther
2008-01-31 14:24:33 +01:00
Günther Deschner
60fe8ade74 Use pidl for samr_GetDomPwInfo() server-side.
Guenther
2008-01-31 13:39:37 +01:00
Günther Deschner
2df3408079 Let _samr_Close() use pidl generated server code.
Guenther
2008-01-31 11:20:13 +01:00
Volker Lendecke
5c392c4c6e Some C++ fixes 2007-12-21 09:58:21 +01:00
Volker Lendecke
735f593154 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
2007-12-19 21:09:10 +01:00
Michael Adam
1d4e0ad114 Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().
Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael
2007-12-17 13:05:54 +01:00
Volker Lendecke
eb523ba776 s/sid_to_string/sid_to_fstring/
least surprise for callers
2007-12-15 22:47:30 +01:00
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Jeremy Allison
eaf14c701b Remove all pstrings from smbd/chgpasswd.c.
Jeremy.
2007-11-12 15:02:50 -08:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Volker Lendecke
0141e64ad4 r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
2007-10-10 12:31:12 -05:00
Michael Adam
9a28be220d r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.

I hope these were really all there were.

Michael
2007-10-10 12:30:58 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Jim McDonough
afabd68b6a r23616: Fix bugzilla #4719: must change password is not set from usrmgr.exe.
This was only affecting the newer versions of usrmgr.exe, because they
use a user_info_25 struct.  The password is getting set separately
inside that code, so the password last set time was getting set from the
password change logic.

We also were not parsing a number of fields (like logon hours) from the
user_info_25.  That should also be fixed.
2007-10-10 12:23:36 -05:00
Volker Lendecke
590d2164b3 r22786: Some cleanup by Karolin Seeger: Remove unused pdb_find_alias, and change
return values of some alias-releated pdb functions from BOOL to NTSTATUS

Thanks :-)
2007-10-10 12:21:57 -05:00
Volker Lendecke
2c5b951eba r22767: Argl. Typed in 'svn ci' in the wrong branch. Revert. 2007-10-10 12:21:55 -05:00
Volker Lendecke
fb6ac8a5b2 r22766: Merge from 3_0:
r22412 | obnox | 2007-04-20 14:23:36 +0200 (Fr, 20 Apr 2007) | 5 lines

Add a "deletelocalgroup" subcommand to net sam.

Thanks to Karolin Seeger <ks@sernet.de>.
2007-10-10 12:21:55 -05:00
Jeremy Allison
c3df5d08dd r22587: Ensure TALLOC_ZERO_ARRAY is consistent.
Jeremy.
2007-10-10 12:19:47 -05:00
Jeremy Allison
18f47f999d r22586: Add a modified version of Simo's patch.
Jeremy.
2007-10-10 12:19:47 -05:00
Jeremy Allison
f6fa3080fe r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
2007-10-10 12:19:44 -05:00
Alexander Bokovoy
cc38ffb9a4 r22505: Fix build 2007-10-10 12:19:40 -05:00
Jim McDonough
b1ab360519 r22504: Fix bug Jerry found during his tutorial. Sorry :-(
Allows authorized users (e.g. BUILTIN\Administrators members) to
set attributes on an account, particularly "user cannot change
password".

add become_root() around updating attributes, after checking that
access has been granted.
2007-10-10 12:19:40 -05:00
Stefan Metzmacher
fa322f0cc9 r22001: change prototype of dump_data(), so that it takes unsigned char * now,
which matches what samba4 has.

also fix all the callers to prevent compiler warnings

metze
2007-10-10 12:18:59 -05:00
Volker Lendecke
af3308ce5a r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
who did not run the idle events to drop ldap connections.

Volker
2007-10-10 12:18:33 -05:00
Gerald Carter
78bf4042dd r21635: Don't free talloc()'d memory. I wish people would check the callers
when changing how memory is allocated.
2007-10-10 12:18:19 -05:00
Volker Lendecke
4423880ff4 r21563: Fix a memleak: We only need dispinfo structs for "our" and for the builtin
domain. Without this patch we leaked a DISPINFO for the (NULL) domain per
samr_connect*() call.

Volker
2007-10-10 12:18:14 -05:00
Volker Lendecke
f63189907e r21551: Ok, this is more subtle. More tomorrow :-) 2007-10-10 12:18:12 -05:00
Volker Lendecke
fad2ee8aa3 r21550: make disp_info_list static to get_samr_dispinfo_by_sid(), add a comment :-) 2007-10-10 12:18:12 -05:00
Volker Lendecke
0aceda68a8 r21549: Only create DISP_INFO structs for domain handles, the others don't need
them. It just does not make sense to do a querydispinfo on an alias handle...

This fixes a memleak: Every samr_connect*() call leaked a DISP_INFO for the
(NULL) sid.

More cleanup pending: Essentially, we only need the DISP_INFO cache for the
get_global_sam_sid() domain. BUILTIN is fixed and small enough, and there are
no other domains around where enumerations could happen.

This also removes the explicit builtin_domain flags. I don't think this is
worth it. If this makes a significant difference, then we have a *VERY* tuned
RPC layer...

Jeremy, please check this. If it's ok, we might want to merge it across.

Volker
2007-10-10 12:18:12 -05:00
Gerald Carter
6a69caf690 r21507: Fix some "cannot access LDAP when no root" bugs.
The two culprits were

* pdb_get_account_policy()
* pdb_get_group_sid()
2007-10-10 12:18:09 -05:00
Jim McDonough
21abbeaee9 r19058: Implement "user cannot change password", and complete "user must change
password at next logon" code.  The "password last set time" of zero now
means "user must change password", because that's how windows seems to
use it.  The "can change" and "must change" times are now calculated
based on the "last set" time and policies.

We use the "can change" field now to indicate that a user cannot change
a password by putting MAX_TIME_T in it (so long as "last set" time isn't
zero).  Based on this, we set the password-can-change bit in the
faked secdesc.
2007-10-10 12:15:06 -05:00
Gerald Carter
4faa5004fb r18429: fix a regression renaming local group introduced by trying to handle renames to the same name 2007-10-10 11:51:23 -05:00
Gerald Carter
3da9f80c28 r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
2007-10-10 11:51:18 -05:00