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

17299 Commits

Author SHA1 Message Date
Volker Lendecke
c23c9bfd67 r5125: Fix bug 2113 -- thanks to jason@ncac.gwu.edu
(This used to be commit 0c205bcc864c8dc01124a5d654792de0cbf79a63)
2007-10-10 10:55:28 -05:00
Tim Potter
2eab58d3fd r5112: Fix for shared object creation in examples. Bugzilla #2058.
(This used to be commit 8e5db6f08ceb969bd2580558031f3737b32f10b1)
2007-10-10 10:55:15 -05:00
Tim Potter
e7eb70928c r5111: Fix up changed prototype for setsampwent pdb function.
(This used to be commit 331748202077ce9e0b5dcf3ed9b3ab6f89e9c0e4)
2007-10-10 10:55:15 -05:00
Jeremy Allison
91bf6cb6bf r5100: We should only care about case-sensitivity when *reading* an incoming
filename, not returning one. Makes us pass one more Samba4 RAW-SEARCH test.
Jeremy.
(This used to be commit 228d1e1649a0b4952eb5603cb5e1851cdc8f0c72)
2007-10-10 10:55:15 -05:00
Volker Lendecke
d225b74b6d r5098: Next round build-fixing
(This used to be commit 175ec3ed518704920c7c55b050ec1cc00da7f560)
2007-10-10 10:55:15 -05:00
Volker Lendecke
0dc388a837 r5096: Attempt to fix the build
(This used to be commit 5f34139b68460f6fb1046e2b97f16dbeff3fb136)
2007-10-10 10:55:14 -05:00
Jeremy Allison
7171515a01 r5082: Don't blindly copy question rr_type and class, set correctly as required
by rfc1002.
Jeremy.
(This used to be commit 422fb43dda13e0840245ae272b7621640b8ad220)
2007-10-10 10:55:14 -05:00
Jeremy Allison
e03b7d30d5 r5077: Use correct type for rr record on negative name query reply.
Jeremy.
(This used to be commit 86c5548d272c0804c0188ae744ae1bb17eb817f6)
2007-10-10 10:55:14 -05:00
Jeremy Allison
22923f7d2d r5076: Ensure that WINS negative name query responses and WACK packets
use the correct RR type of 0xA instead of reflecting back what
the query RR type was (0x20). See rfc1002 sections 4.2.14 and
4.2.16.
Jeremy.
(This used to be commit ab8c9240044f1ef3d5c6ac4850c8ec615c2e32fd)
2007-10-10 10:55:13 -05:00
Jeremy Allison
e612109ace r5069: Ensure we return the correct errors for old-style search requests.
Jeremy.
(This used to be commit ef73dfe0d6c3b7f71109e32115d528ecdbe562ea)
2007-10-10 10:55:13 -05:00
Jeremy Allison
8ac31b5034 r5066: A couple of small fixes from James Peach @ SGI.
Jeremy.
(This used to be commit 9d131e94195df79e07c8fad20e12ba1b67441a81)
2007-10-10 10:55:13 -05:00
Jeremy Allison
de728fa81a r5063: Shamelessly steal the Samba4 logic (and some code :-) for directory
evaluation. This stops us from reading the entire directory into
memory at one go, and allows partial reads. It also keeps almost
the same interface to the OpenDir/ReadDir etc. code (sorry James :-).
Next I will optimise the findfirst with exact match code. This speeds
up our interactive response for large directories, but not when a
missing (ie. negative) findfirst is done.
Jeremy
(This used to be commit 0af1d2f6f24f238cb05e10d7d53dcd5b5e0f5f5d)
2007-10-10 10:55:13 -05:00
Gerald Carter
575ff39625 r5060: BUG 2286: fix typoe on sambaConfig oc definition
(This used to be commit e2ce048654fdb98a50622ac60abae18c6b6ba4d2)
2007-10-10 10:55:13 -05:00
Günther Deschner
26dcc2aa74 r5058: Due to the fragileness how windows reacts on unmapped sids sometimes,
don't leave administator-sid unmapped. Simply return "Administrator"

Guenther
(This used to be commit 168ddf31d1af49d52d17dd09c9653d3deafb9442)
2007-10-10 10:55:13 -05:00
Gerald Carter
962a5c9552 r5056: * correct STANDARD_RIGHTS_WRITE_ACCESS bitmask define
* make sure to apply the rights_mask and not just the saved
  bits from the mask in access_check_samr_object()
* allow root to grant/revoke privileges (in addition to Domain
  Admins) as suggested by Volker.

Tested machine joins from XP, 2K, and NT4 with and without
pre-existing machine trust accounts.  Also tested basic file
operations using cmd.exe and explorer.exe after changing the
STANDARD_RIGHTS_WRITE_ACCESS bitmask.
(This used to be commit c0e7f7ff60a4110809b8f500fdc68a1bf963da36)
2007-10-10 10:55:12 -05:00
Gerald Carter
6441450e93 r5046: mark 'winbind enable local accounts' and testprns as depcrecated
(This used to be commit 17bc42b4c2e21004adaeac78db6231a384fda16c)
2007-10-10 10:55:12 -05:00
Gerald Carter
3bb69bc8ef r5029: after talking to Rob, ensure that we set the NETIOSNAME.domainname
as the longname in the published printer information since this
is what we will have used when we joined the domain.

More testing on this tomorrow.
(This used to be commit d64fd1116d5fe29807be29c73809317f88fdb033)
2007-10-10 10:55:12 -05:00
Gerald Carter
091f4bcda5 r5028: * check acb_info mask in _samr_create_user instead of the last character
of the user name
* fix some access_mask checks in _samr_set_userinfo2 (getting join from
  XP without being a member of domain admins working)
(This used to be commit 04030534ffd35f8ebc997d9403fd87309403dcbf)
2007-10-10 10:55:12 -05:00
Gerald Carter
a98e668058 r5020: bumping the 3.0 tree to 3.0.12pre1 since there will not be a full sync for the 3.0.11rc1 release
(This used to be commit c0e292e491c684b8ce19096e55338a27161c0a49)
2007-10-10 10:55:12 -05:00
Gerald Carter
46d8ff2320 r5015: (based on abartlet's original patch to restrict password changes)
* added SE_PRIV checks to access_check_samr_object() in order
  to deal with the run-time security descriptor and their
  interaction with user rights

* Reordered original patch in _samr_set_userinfo[2] to still
  allow root/administrative password changes for users and machines.
(This used to be commit f9f9e6039bd9443d54445e41c3783a2be18925fb)
2007-10-10 10:55:12 -05:00
Jeremy Allison
02c25a2683 r5014: Split out the request to send an async level II oplock break into a
new function to make it clear when it's called. Remove async parameter
that had been overloaded into request_oplock_break.
Inspired by work from Nadav Danieli <nadavd@exanet.com>.
Jeremy.
(This used to be commit 05697fb50236dfc28e81f8b3900eac17cace57c1)
2007-10-10 10:55:11 -05:00
Gerald Carter
f0df38a4e8 r5012: fix segfault caused by using a ipp_t * after calling cupsDoRequest()
(This used to be commit 0ac3c4c5a231c314213dbce29e25911ddb04de2d)
2007-10-10 10:55:11 -05:00
Jeremy Allison
d728056203 r5002: Ensure we can't remove a level II oplock without having the
shared memory area locked. This need to be in 3.0.11. Pointed
out by Nadav Danieli <nadavd@exanet.com>.
Jeremy.
(This used to be commit 47ed16aefbdcb6257101c6b78c93eeb7cf048185)
2007-10-10 10:55:11 -05:00
Gerald Carter
51813e3bc5 r5000: 5000th post! w00tsvn diffsvn diff :-)
(This used to be commit 41d247d9643eb9cb9705f65f924e61c8dfbe6e00)
2007-10-10 10:55:11 -05:00
Gerald Carter
e512799c00 r4996: sync up copytights with trunk
(This used to be commit 8946efe102f7a8a9b5a8059a80666b782159e7b8)
2007-10-10 10:55:11 -05:00
Gerald Carter
33b789f321 r4995: fail set_privileges() if 'enable privileges = no' to prevent confused admins who never read what I write :-)
(This used to be commit 1d7a636e0e7f8a0bc3d3ae04b40f79db7f08d619)
2007-10-10 10:55:11 -05:00
Günther Deschner
a548e710d8 r4994: Patch from abartlet:
When migrating account policies to ldapsam, handle the fact that an
admin might have changed the default location of the sambaDomain-object
after installation.

Guenther
(This used to be commit 78c3c7127444b8f9959f4d6ce9e540271869d70f)
2007-10-10 10:55:11 -05:00
Günther Deschner
23f558535e r4989: Display failed LDAP-server-uri.
Guenther
(This used to be commit d433c7b476005064b9cfd339bbd8a25b40de59c1)
2007-10-10 10:55:10 -05:00
Günther Deschner
de87569cfb r4988: After speaking with Jerry, remove old lp_admin_users to
administrator-sid mapping completely.

Guenther
(This used to be commit 4cbe37ecd544b01c57c7fce5b3be28669f4ba6c3)
2007-10-10 10:55:10 -05:00
Andrew Bartlett
2ea185b3ab r4976: Try to scare people off from trying to write authentication modules
that only acheive as much as 'security=server' does.

Andrew Bartlett
(This used to be commit fb694f2b1a809d221f48f9b9b0e54e9512325bae)
2007-10-10 10:55:10 -05:00
Günther Deschner
9b1e5a7118 r4972: Fix a warning and some debugging-outputs.
Guenther
(This used to be commit 1eabfa050b661168b42892c2d841c7891e59cf5f)
2007-10-10 10:55:10 -05:00
Jeremy Allison
c24c328a9e r4970: Fix for bug 2092, allowing fallback after kerberos and allow
gnome vfs to prevent auto-anonymous logon.
Jeremy.
(This used to be commit 843e85bcd978d025964c4d45d9a3886c7cf7f63c)
2007-10-10 10:55:10 -05:00
Volker Lendecke
d1b7d109fa r4967: Not being in any domain local groups is obviously valid...
Volker
(This used to be commit 78975ab9a996ac61be37410f18ddedb9df58d04b)
2007-10-10 10:55:10 -05:00
Gerald Carter
5ee2170519 r4966: don't enumerate the drivers for the same architecture string more than once
(This used to be commit c488ce9934aaf640c3f63cbdabc3110b8cf70fae)
2007-10-10 10:55:09 -05:00
Gerald Carter
b1288c61a9 r4965: comment out some unused attributes and oc's
(This used to be commit d95c9c4d74ea2fb7e5aac4a58888ab6fbc571dfb)
2007-10-10 10:55:09 -05:00
Günther Deschner
0b3889e346 r4964: Fix our lsa lookupsid $OURDOMAINSID-500.
Give the admin-user (rid 500) a chance to be found in passdb, not
returning the (possibly obscure) first entry of "admin users" before
that.

Guenther
(This used to be commit d319c0e189bc67a4552dafaff80113603b551eb3)
2007-10-10 10:55:09 -05:00
Günther Deschner
446a2107e6 r4963: It is actually a very bad idea to use KRB5_CONFIG in the
configure-checks (At least Heimdal uses KRB5_CONFIG for locating it's
configuration-file (usually /etc/krb5.conf)). Renaming it to KRB5CONFIG
prevents configure-checks that use heimdal-libs from segfaulting while
the lib reads the krb5-config binary as a configuration file...

Vendors that used the KRB5_CONFIG-variable to let configure find a
custom krb5-config binary have to use KRB5CONFIG now.

Guenther
(This used to be commit 95edb3c67f330afd8dbb8268f3f8ecaf1732c238)
2007-10-10 10:55:09 -05:00
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