1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

17462 Commits

Author SHA1 Message Date
Volker Lendecke
fcfc94a66a r4946: Our notion the other_sids in the info3 SamLogon struct was
...hmmm... completely bogus. This does not affect us as a domain controller,
as we never set other_sids, but I have *no* idea how winbind got away with it.

Please review thoroughly, samba4 idl looks closer to reality here.

Test case: Member of w2k3 domain, authenticate as a user who is member of one
or more domain local groups. Easiest review with 'client schannel = no'.

Thanks,

Volker
(This used to be commit a0a6388830d9457de3e42686c64bddeba42954f8)
2007-10-10 10:55:08 -05:00
Volker Lendecke
f6fed0082b r4933: List not only the first 10 trusts with rpcclient -c enumtrust.
Volker
(This used to be commit 9ca6cfcf1e4a905d47429a6dc18e2bd7ad5fe1e3)
2007-10-10 10:55:08 -05:00
Günther Deschner
a851dcd09a r4932: Forgot to increase version with the account-policy-commit.
Guenther
(This used to be commit 42e380303ddce890f313c221a766dc1e1ee972fb)
2007-10-10 10:55:08 -05:00
Günther Deschner
6e5accde90 r4931: Add get_user_info_7 in SAMR. This just gives out the username. (In
preparation of adding the ability of renaming users via setuserinfo
level 7).

Guenther
(This used to be commit 6f34ed6c203fa11182640da97581075612d26c0e)
2007-10-10 10:55:08 -05:00
Günther Deschner
e3971524d2 r4926: Use LDAP_SCOPE_ONELEVEL instead of OpenLDAP's LDAP_SCOPE_ONE-scope.
Guenther
(This used to be commit eee0bd806b4fd4558f9c48c09f7e85274e2b807f)
2007-10-10 10:55:08 -05:00
Günther Deschner
b4afdc08d5 r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).
Does automated migration from account_policy.tdb v1 and v2 and offers a
pdbedit-Migration interface. Jerry, please feel free to revert that if
you have other plans.

Guenther
(This used to be commit 75af83dfcd8ef365b4b1180453060ae5176389f5)
2007-10-10 10:55:08 -05:00
Jeremy Allison
686ceda3c3 r4921: Typo.
(This used to be commit 033105376ef4ed7d31ef7cab2442719ed57d29b9)
2007-10-10 10:55:07 -05:00
Jeremy Allison
6f56a5be2e r4917: Merge some of Derrell.Lipman@UnwiredUniverse.com obvious fixes.
Added text explaining units in pdbedit time fields.
Jeremy.
(This used to be commit 3d09c15d8f06ad06fae362291a6c986f7b6107e6)
2007-10-10 10:55:07 -05:00
Gerald Carter
5876aa1a78 r4913: fixing 'perl requires' filters for RPM packaging on RedHat/Fedora
(This used to be commit 6b38a3923c403562c26642f24477c607a4295878)
2007-10-10 10:55:07 -05:00
Gerald Carter
4417bf44ad r4907: remove unreached code
(This used to be commit 15fd4a05ec2439f41591ee8a1c30021d9a34371b)
2007-10-10 10:55:07 -05:00
Gerald Carter
5e086f2a30 r4905: patch from abartlet to remove storing the auth-user credentials from the cli* in cm_prepare_connection(). using credentials from a domain other thanour primary domain will cause the schannel setup to fail
(This used to be commit a13e29b5f2f1e48225b5b5964bc0777948f16622)
2007-10-10 10:55:07 -05:00
Gerald Carter
fd2ad84d7b r4902: please note that cupsDoRequest() deletes the request* so don't call ippDelete(request) *ever*
(This used to be commit f65598b3b0dc99900d547eb67473cca5d371614f)
2007-10-10 10:55:07 -05:00
Jeremy Allison
dbf364c905 r4882: Fix for #2255. Debug should have been 10 not 0.
Jeremy.
(This used to be commit 5557e1409a9a22759ca3bea021d4a662099e683a)
2007-10-10 10:55:07 -05:00
Jeremy Allison
90c5c93ded r4881: Varient of Lar's patch for #2270. Jerry promises to test :-).
Jeremy.
(This used to be commit 2afe2a16c92bb2500854b8e288c1d7704ede704a)
2007-10-10 10:55:06 -05:00
Jeremy Allison
c3dc0de8b9 r4879: Fix rewinddir -> rewind_dir. Noticed by James Peach.
Jeremy
(This used to be commit 79f54d12759f9161dc5837a090391cd0cf6471f5)
2007-10-10 10:55:06 -05:00
Günther Deschner
2b21e9004f r4877: When vampiring account policy AP_LOCK_ACCOUNT_DURATION honour "Lockout
Duration: Forever".

Guenther
(This used to be commit aecacf4d9cc5e2aa69b358292b9d591ade696500)
2007-10-10 10:55:06 -05:00
Jeremy Allison
b3b315078e r4875: Fix for bugid #221, inspired by Mrinal Kalakrishnan <mail@mrinal.net>.
NT sometimes send garbage bytes in NT security descriptor linearizations
when sending well-known sids. Cope with these.
Jeremy.
(This used to be commit 51b34bb536fdb18c99da1e151eba03ea634e0449)
2007-10-10 10:55:06 -05:00
Gerald Carter
3947f33ec5 r4874: add DOmain Admins (Full Control) to the default printer sd if we are a DC
(This used to be commit 8971a8544274a7f3643ae67be744d7dab181973d)
2007-10-10 10:55:06 -05:00
Gerald Carter
eb44d99e9e r4873: example delete printer script for use with cups
(This used to be commit c646829e3231d5e4e8c030bb084920fadaafb983)
2007-10-10 10:55:06 -05:00
Gerald Carter
6a6c7cbf99 r4871: BUG 603: patch by Daniel Beschorner <db@unit-netz.de>. Correct access mask check for _samr_lookup_domain() to work with Windows RAS server
(This used to be commit 2e7a5608ac6a11f4e9e8bda69abb984fb4f86eb8)
2007-10-10 10:55:05 -05:00
Günther Deschner
49067b308f r4870: Make multi-domain-mode in idmap_rid accessible from outside (can be
compiled with -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS) as requested by Lars
Mueller <lmuelle-at-suse.de>.

Allow to map ID's for a local SAM and add some more
debugging-information.

Guenther
(This used to be commit 4d8e7c9ff00417b2ebae0c5faccfe9c2c9c44f2e)
2007-10-10 10:55:05 -05:00
Günther Deschner
027d976bb3 r4869: Display sam_user_info_7 in rpcclient.
Guenther
(This used to be commit 30e808ca07bec66d5ecd81cc8c86bb4a98874bc4)
2007-10-10 10:55:05 -05:00
Günther Deschner
725edd20f1 r4868: Add "net rpc user RENAME"-command.
Note that Samba3 does not yet support it server-side.

Guenther
(This used to be commit b2c8220931733593fd312fc25b6c73f440b4567a)
2007-10-10 10:55:05 -05:00
Gerald Carter
e86235fbdc r4867: Removing smbldap-tools from the svn tree. I'll include
the latest version in the actual release tarballs.
Have spoken to the idealx developers about this.

Updated README to reflect the changte for people using svn.

Removed ldapsync.pl since it is no longer needed when using
the smbldap-tools (only keep things you support).
(This used to be commit f745e5119f420d4826ac395037880666761e05e8)
2007-10-10 10:55:03 -05:00
Günther Deschner
5f659ffbf0 r4866: Add createdomgroup to rpcclient (needed to generate huge amounts of
groups when 'net rpc group add' is just to slow).

Guenther
(This used to be commit 88572efdea1bfd32478b33564a85485222731901)
2007-10-10 10:54:00 -05:00
Jeremy Allison
74dd9f1186 r4864: Remove unused var.
Jeremy.
(This used to be commit 9fd5d633e65e00a44ba0136ee91170edcecfae24)
2007-10-10 10:54:00 -05:00
Gerald Carter
811df6699c r4860: fix silly limitation in ldapsam and tdbsam. Expand variables in the profile path, logon home and logon script values
(This used to be commit 504ea4ac68f47b71542a88b17cbb6b546e1cb881)
2007-10-10 10:54:00 -05:00
Gerald Carter
372440f207 r4856: after testing a simple add printer script, i realized that you still have to be root to send the message to all smbds that the config file has been updated
(This used to be commit 6409de1a1ef34bb41c3efeebfabdf13be5e08613)
2007-10-10 10:54:00 -05:00
Gerald Carter
704862b687 r4855: add some smb.conf script for add/delete/change share and addprinter hooks
(This used to be commit 073592b7ad539138763c457fe58c1d82b2daa9c1)
2007-10-10 10:54:00 -05:00
Gerald Carter
415ea1dfd3 r4852: merge simo changes to srv_srvsvc_nt.c from trunk
that allows the add/change share command to create the directory
passed in as an arguement and not require that it pre-exist.

Also finish testing of SeDiskOperatorPrivilege via srvmgr.exe
(This used to be commit 9af83a7d70324846e6a2660c73589ee68340b4aa)
2007-10-10 10:53:59 -05:00
Günther Deschner
320d765081 r4851: Preleminary fix for ldapsam_enum_group_memberships when
ldapsam:trusted=True. Don't bail out when ldap-search returns pure
posixgroups (w.o. samba group-mapping).

This way those unix-memberships do not appear in user and nt user token.
Volker, could you please look over that one?

Guenther
(This used to be commit 853a8b7f1c0b00b2e4433d1281f3c9bfcaf980a6)
2007-10-10 10:53:59 -05:00
Günther Deschner
31dea03916 r4850: Fix remaining pdb_setsampwent-calls.
To get all entries use a 0 acb_mask.

Guenther
(This used to be commit bc729f8fd877236a503cc9df64138b2be2e1a91d)
2007-10-10 10:53:59 -05:00
Gerald Carter
b3757eadf0 r4849: * finish SeAddUsers support in srv_samr_nt.c
* define some const SE_PRIV structure for use when
  you need a SE_PRIV* to a privilege
* fix an annoying compiler warngin in smbfilter.c
* translate SIDs to names in 'net rpc rights list accounts'
* fix a seg fault in cli_lsa_enum_account_rights caused by
  me forgetting the precedence of * vs. []
(This used to be commit d25fc84bc2b14da9fcc0f3c8d7baeca83f0ea708)
2007-10-10 10:53:59 -05:00
Gerald Carter
0a2449faf5 r4848: fix build; gd please check and make sure this is ok
(This used to be commit f1d59c3a2693fe36b9abe9c1da4b703c5543f938)
2007-10-10 10:53:59 -05:00
Günther Deschner
1ed62fde09 r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries().
This allows the ldap-backend to search much more effeciently. Machines
will be searched in the ldap_machine_suffix and users in the
ldap_users_suffix. (Note that we already use the ldap_group_suffix in
ldapsam_setsamgrent for quite some time).

Using the specific ldap-bases becomes notably important in large
domains: On my testmachine "net rpc trustdom list" has to search through
40k accounts just to list 3 interdomain-trust-accounts, similiar effects
show up the non-user query_dispinfo-calls, etc.

Also renamed all_machines to only_machines in load_sampwd_entries()
since that reflects better what is really meant.

Guenther
(This used to be commit 6394257cc721ca739bda0e320375f04506913533)
2007-10-10 10:53:59 -05:00
Simo Sorce
8f476e5e52 r4846: do not keep outdated files here.
the updated file is in the Release branch and in the official tarballs
(This used to be commit f77939c65cc4ae4e0bb9504f700b50d6601bd031)
2007-10-10 10:53:58 -05:00
Simo Sorce
2f1c03b5a6 r4845: Correct my name.
Jerry this file seem old and not updated.
We should either update it or remove it imho.

Simo.
(This used to be commit 7c88ecf6bb6f341f5ed7c35011a1a9bc2daf34e0)
2007-10-10 10:53:58 -05:00
Günther Deschner
0c6010238d r4840: * Add more generic root-dse inspection function to check for given
controls or extensions.
* Check and remember if ldapsam's LDAP Server support paged results
(in preparation of adding async paged-results to set|get|end-sampwent in
ldapsam).

Guenther
(This used to be commit ced58bd8849cdef78513674dff1b1ec331945aa9)
2007-10-10 10:53:57 -05:00
Günther Deschner
87965a2425 r4839: Allow to set acb_mask in rpcclient's enumdomusers (for debugging).
Guenther
(This used to be commit 92851def70914af1aa501857c6346ca6ae6fc010)
2007-10-10 10:53:57 -05:00
Jeremy Allison
d33c5aa71f r4830: Fix for problem noticed by Guy Harris <gharris@apple.com>, return
correct DOS/NT error code on transact named pipe on closed pipe
handle.
Jeremy.
(This used to be commit 599c281464fa96725c3ee6dd3c5ee03ea81314ea)
2007-10-10 10:53:57 -05:00
Gerald Carter
2cca804e61 r4827: add 'net rpc rights list accounts' & update help text
(This used to be commit 002ece931917e2952ed795939384764d14f93ce9)
2007-10-10 10:53:57 -05:00
Gerald Carter
10861a6160 r4825: Printing changes
----------------

* bracket the add/delete/set printer scripts with checks for se_print_op
* slight change to the add/set printer script semantics.  smbd no longer
  relies on output from the script (on stdout) to re-read smb.conf
* remove SIGHUP from set/add/delete printin script code and now just
  use MSG_SMB_CONF_UPDATED

* bracket the add/delete/set share scripts with checks for se_print_op
  (this includes setting share ACLs)
(This used to be commit 8ab8113d2e1bec6a1dbf464882ad724c7c591be4)
2007-10-10 10:53:56 -05:00
Gerald Carter
d50816d59a r4824: wrap the shutdown and abort_shutdown calls in check for the SE_REMOTE_SHUTDOWN privilege
(This used to be commit d11339b7e3b890b8e01744b6b309efaa7ad328e1)
2007-10-10 10:53:56 -05:00
Gerald Carter
89a96c9c65 r4823: remove -O1 from --with-developer
(This used to be commit a1fb1cb019804446a093d7d0d7b1952cc538f9cc)
2007-10-10 10:53:56 -05:00
Gerald Carter
b4aaa2ae25 r4822: fix return code when you ask for a non-privileged SID via one of the privileges RPC calls
(This used to be commit 3f4f2c80fd157796a7ba56f31f921e8a3ce46bc3)
2007-10-10 10:53:56 -05:00
Gerald Carter
cf85715319 r4821: finish off 'net rpc rights [list|grant|revoke]'
one small todo item is to add a 'accounts' sub option
to 'net rpc list' so enumerate all privileged SIDs
and their associated rights.
(This used to be commit bf4385c79a0ce2e4983ffa11d39367dbf1d4dcfd)
2007-10-10 10:53:56 -05:00
Gerald Carter
862e610e4a r4820: add beginnings of 'net rpc rights' for managing privilege assignments
(This used to be commit 164f94e52929330bd638f19bcf3bfce50303269e)
2007-10-10 10:53:55 -05:00
Gerald Carter
ade3ef6f04 r4809: * include SeDiskOperatorPrivilege and SeRemoteShutdownPrivilege
(noty enfornced yet though)
* add 'enable privileges (off by default) to control whether or
  not any privuleges can be assigned to SIDs
(This used to be commit cf63519169d2f3c56a6acf46b9257f4c11d5ea74)
2007-10-10 10:53:55 -05:00
Gerald Carter
46e5effea9 r4805: Last planned change to the privileges infrastructure:
* rewrote the tdb layout of privilege records in account_pol.tdb
  (allow for 128 bits instead of 32 bit flags)
* migrated to using SE_PRIV structure instead of the PRIVILEGE_SET
  structure.  The latter is now used for parsing routines mainly.

Still need to incorporate some client support into 'net' so
for setting privileges.  And make use of the SeAddUserPrivilege
right.
(This used to be commit 41dc7f7573c6d637e19a01e7ed0e716ac0f1fb15)
2007-10-10 10:53:55 -05:00
Jelmer Vernooij
5d47f8e5e5 r4802: Don't try to update a column with the name "NULL"
(This used to be commit ed38e6026494a2b58c70cc175c6e210bea454e5c)
2007-10-10 10:53:55 -05:00