1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

12972 Commits

Author SHA1 Message Date
Andrew Bartlett
b0db52b63a r23737: Validate that we object to duplicate values in an add or replace.
We can't ever allow duplicates, even if the client sends them

Andrew Bartlett
(This used to be commit 10277f2724)
2007-10-10 14:59:09 -05:00
Jeremy Allison
4f2fe8e947 r23734: Add a test to prove tridge's theory that the mask, once set
on an open directory handle, is never changed. (He's right btw :-).
Jeremy.
(This used to be commit bf9242ad45)
2007-10-10 14:59:09 -05:00
Ronnie Sahlberg
7bf94150da r23721: For unions, The TAG and the ARM are aligned independently.
Move emitting ALIGN_TO_x_BYTES to after the tag has been dissected so the
alignment only affects the ARM.
(This used to be commit 22945854d9)
2007-10-10 14:59:08 -05:00
Andrew Bartlett
967866f170 r23720: Allow the member server to work against an LDAP Backend. Another case
where LDB isn't as strict as OpenLDAP, the self join record contains
duplicate servicePrincipalNames once the DNS name and domain name are
made equal.  (Easier to just skip the useless self-join).

Andrew Bartlett
(This used to be commit 49ff929be6)
2007-10-10 14:59:08 -05:00
Andrew Bartlett
cc0756c302 r23719: ejs being case sensitive, while LDAP is not is a real pain when
dereferencing attributes.

Fix the case to match between the attributes searched for and the ejs
element.  (Fixes LDAP-backend selftest)

Andrew Bartlett
(This used to be commit 51cf66bb96)
2007-10-10 14:59:08 -05:00
Andrew Bartlett
f5778d5f9e r23718: Make Samba4 work against the LDAP backend again.
When we set up the schema, we don't have a partitions container yet.
The LDAP error differs from that given by LDB, so I think we still
have some conformance work to do.

Andrew Bartlett
(This used to be commit 5ddbca73d4)
2007-10-10 14:59:07 -05:00
Andrew Bartlett
90b49dc520 r23717: We need to remove the _ in LDAP_MANAGERPASS for the
--ldap-manager-pass= option to work.

Andrew Bartlett
(This used to be commit fbcb1ec141)
2007-10-10 14:59:07 -05:00
Andrew Bartlett
97172e1120 r23716: Clarify LDAP Manager DN and fix slapd startup syntax.
Andrew Bartlett
(This used to be commit 17dad5d8c3)
2007-10-10 14:59:06 -05:00
Andrew Bartlett
c37cfae81e r23715: Make the provision-backend script print out the exact commands to run,
to set up the LDAP backend.

Andrew Bartlett
(This used to be commit cc7900210a)
2007-10-10 14:59:06 -05:00
Andrew Bartlett
3a78f7323a r23703: Start to get Samba4 to again work with LDAP backends, after I turned
on metze's schema work.

Andrew Bartlett
(This used to be commit 3111bbdf64)
2007-10-10 14:59:06 -05:00
Andrew Tridgell
4ace7950d4 r23702: fixed a "falling back to select" error in the standard process
model. It's much cleaner to get the event system to close the fd,
especially with the complexity of forks
(This used to be commit d1b710f09c)
2007-10-10 14:59:05 -05:00
Andrew Tridgell
3381a5c3a4 r23701: when we create a new socket with socket_accept(), clear any flags that
were set in the old one. Otherwise SOCKET_FLAG_NOCLOSE causes a major
fd leak
(This used to be commit 4e31eda055)
2007-10-10 14:59:05 -05:00
Andrew Tridgell
2a8f9213a4 r23700: pre-open the sam in the parent smbd. This has the effect of loading
the schema. That stops us loading the schema for each new connection.

In future I would prefer to share a lot more of our ldb contexts with
children. That will require a larger piece of surgery.
(This used to be commit ff41bdc350)
2007-10-10 14:59:04 -05:00
Andrew Tridgell
b4d9778a80 r23699: when we create the global schema, remember to set the ldb opaque so we
can find it again
(This used to be commit 968e70b2aa)
2007-10-10 14:59:04 -05:00
Andrew Tridgell
d1984d5cf3 r23698: fixed notify:backend so it actually works again
(This used to be commit d49ce1d752)
2007-10-10 14:59:04 -05:00
Andrew Tridgell
879e1e0ec7 r23697: use the file perm options in the posix backend
(This used to be commit 701d06ac01)
2007-10-10 14:59:03 -05:00
Andrew Tridgell
b540bc85ff r23696: added the create mask and related share permissions options to Samba4,
using the new share_int_option() code from Simo

speaking of which, this is the first time I've looked closely at the
share_classic.c code. It is absolutely and completely braindead and
broken. Whatever drugs Simo was on at the time, he better not try to
cross a border with them on him!

Problems with it:

 - if you actually set a value, it gets ignored, and the defvalue gets
   used instead ('ret' is never returned). If you don't set a value,
   then defvalue gets returned too. Sound useful?

 - it means we now have to list parameters in source/param/ in lots
   and lots of places, all of which have to match exactly. code like
   this is supposed to reduce the likelyhood of errors, not increase
   it!

 - code which has a long line of if() statements with strcmp() should
   cause your fingers to burn on the keyboard when you type it
   in. That's what structure lists are for. Strangely enough, we have
   all the info in loadparm.c in a structure list, but instead it gets
   replicated in share_classic.c in this strange if() strcmp() form

expect some changes to this code shortly. I'll need a calming cup of
tea first though :-)
(This used to be commit 19a9fc2f44)
2007-10-10 14:59:03 -05:00
Andrew Bartlett
80ae1c2a2a r23695: By not using the NULL context for these large structures, we don't
falsely report them as leaked.

Andrew Bartlett
(This used to be commit e3eb6c2cf6)
2007-10-10 14:59:02 -05:00
Andrew Bartlett
31df9075c5 r23693: Give the process a chance to write out it's coverage data, before we
blast a kill -9 at it.

Andrew Bartlett
(This used to be commit 16692ae7d9)
2007-10-10 14:59:02 -05:00
Stefan Metzmacher
5dd8496af6 r23687: not every compiler supports __typeof__()
metze
(This used to be commit d0f77f7bd7)
2007-10-10 14:59:01 -05:00
Stefan Metzmacher
ee1ca9a410 r23684: Only use the bzr and git information when there's
a .bzr or .git in the top branch directory

I use bzr for my home directory and
bzr version-info in ~/devel/samba/4.0/samba4-git
gives the info about the ~/.bzr branch

metze
(This used to be commit 7bb81c1fc3)
2007-10-10 14:59:01 -05:00
Stefan Metzmacher
91e68b1d90 r23681: merge 23670 from SAMBA_3_0:
metze
(This used to be commit 446312df74)
2007-10-10 14:59:00 -05:00
Andrew Bartlett
222c6dd781 r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
(This used to be commit b7e727186e)
2007-10-10 14:59:00 -05:00
Andrew Bartlett
2f269ed954 r23679: invocationID is a GUID too.
Andrew Bartlett
(This used to be commit 645a8862a3)
2007-10-10 14:58:59 -05:00
Andrew Bartlett
ec0035c9b8 r23678: Update to current lorikeet-heimdal (-r 767), which should fix the
panics on hosts without /dev/random.

Andrew Bartlett
(This used to be commit 14a4ddb131)
2007-10-10 14:58:59 -05:00
Andrew Bartlett
74b35321dc r23677: When I removed data_blob_equal, I clearly didn't test the PIDL code.
Fix these to use the new data_blob_cmp()

Andrew Bartlett
(This used to be commit d2fba8faf0)
2007-10-10 14:58:58 -05:00
Kai Blin
1e1a60aa7b r23676: Added a .gitignore file to hide generated files from git status.
It's identical to .bzrignore
(This used to be commit 9987d30957)
2007-10-10 14:58:58 -05:00
Kai Blin
06a87823aa r23675: Build libnss_winbind on linux.
(This used to be commit 9b74d3aef4)
2007-10-10 14:57:21 -05:00
Kai Blin
170e019044 r23674: Merge changes from Samba 3 SVN r23539:
Avoid code duplication in winbind_nss_linux.h
(This used to be commit e95d258078)
2007-10-10 14:53:31 -05:00
Stefan Metzmacher
115b706939 r23653: add dummy implementation for all nss calls to let nsstest
pass against a samba4 winbind

metze
(This used to be commit 57dfc76743)
2007-10-10 14:53:30 -05:00
Jim McDonough
698093b028 r23643: Fix the build farm tests. We were incorrectly passing the
RPC-SAMBA3-GETUSERNAME tests before the previous password expiration
fixes, because if you create a user and only set the password
administratrively, the "last set time" should not get updated.  Needed
to add some more of the fields_present flags to do this.
(This used to be commit ce5637de22)
2007-10-10 14:53:30 -05:00
Stefan Metzmacher
00389db384 r23638: add SMB_LIBRARY() macro to create a LIBRARY::foo section in
source/config.mk from within *.m4 files

metze
(This used to be commit d5fa147687)
2007-10-10 14:53:30 -05:00
Stefan Metzmacher
13ecb01de8 r23637: fix detection of visibility attribute support
James: AC_TRY_LINK() has a different syntax as AC_TRY_RUN() :-)
       so this was wrong:
       http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=20697&view=rev

metze
(This used to be commit 0a97de3804)
2007-10-10 14:53:29 -05:00
Stefan Metzmacher
8ece71f26e r23635: fix the samba4 build...
we need a bit more work to get linking of
shared libraries completely right...

metze
(This used to be commit 31cbb9ff9f)
2007-10-10 14:53:29 -05:00
Stefan Metzmacher
d5b212caf4 r23631: when linking shared libraries we need to make shure the linker doesn't
skip "unneeded" object files from within .a files.

If the build-farm doesn't like -Wl,--whole-archive, I'll add some more
configure logic fix it tomorrow.

Kai: with this your libnss_winbind.so patch works for me

metze
(This used to be commit d260958084)
2007-10-10 14:53:29 -05:00
Günther Deschner
aa860b259e r23630: Found out what LSA_LOOKUP_NAMES level 5 means:
only query transitive forest trusts.

Guenther
(This used to be commit 71e5e1109c)
2007-10-10 14:53:28 -05:00
Günther Deschner
ff4c92ace2 r23629: Document lsa lookupname lookuplevels Volker discovered a while ago.
Guenther
(This used to be commit 7c6297027d)
2007-10-10 14:53:28 -05:00
Kai Blin
a1d45c6280 r23605: Update mkversion.sh to support git and git-svn checkouts.
Jerry, did I get you right that you'll merge this to 3_0 yourself?

Kai
(This used to be commit 03be540ee3)
2007-10-10 14:53:28 -05:00
Jeremy Allison
1f193bf76d r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
Jeremy.
(This used to be commit 59ba128cb6)
2007-10-10 14:53:28 -05:00
Michael Adam
f604ee4320 r23561: Fix an output message.
(This used to be commit bf1edba3f1)
2007-10-10 14:53:28 -05:00
Andrew Bartlett
e9d19477e4 r23560: - Activate metze's schema modules (from metze's schema-loading-13 patch).
- samba3sam.js: rework the samba3sam test to not use objectCategory,
  as it's has special rules (dnsName a simple match)
- ldap.js: Test the ordering of the objectClass attributes for the baseDN
- schema_init.c: Load the mayContain and mustContain (and system...) attributes when
  reading the schema from ldb
- To make the schema load not suck in terms of performance, write the
  schema into a static global variable
- ldif_handlers.c: Match objectCategory for equality and canonicolisation
  based on the loaded schema, not simple tring manipuation
- ldb_msg.c: don't duplicate attributes when adding attributes to a list
- kludge_acl.c: return allowedAttributesEffective based on schema results
  and privilages

Andrew Bartlett
(This used to be commit dcff83ebe4)
2007-10-10 14:53:27 -05:00
Günther Deschner
b3f3a4b529 r23559: After running testprogs/ejs/minschema.js update schema.ldif (on abartlet's
request).

Guenther
(This used to be commit 5410b23ea6)
2007-10-10 14:53:27 -05:00
Andrew Bartlett
b0c5367f4f r23558: MMC seems to ask for this, so I think we need to include it in our schema.
Andrew Bartlett
(This used to be commit ef1899054e)
2007-10-10 14:53:27 -05:00
Andrew Bartlett
c30e91863c r23557: Ensure that we don't reorder the objectClass list, if we don't have
any subclasses loaded yet, or none are applicable.

This fixes MMC so that it at least displays the Samba domain as a
domain, but there is still work to be done.

Andrew Bartlett
(This used to be commit b96b7b623d)
2007-10-10 14:53:26 -05:00
Andrew Bartlett
d291b8bf93 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
(This used to be commit 96ef5259c6)
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
576b1c84fb r23542: Include function documentation in prototype headers.
(This used to be commit 03eef5f337)
2007-10-10 14:53:26 -05:00
Alexander Bokovoy
9ed016b692 r23540: Continue fixing bench-readwrite. We need to initialize state->readcnt not only when file is written but at initial write as well.
(This used to be commit 0258f9d3c2)
2007-10-10 14:53:26 -05:00
Andrew Tridgell
dc4f1f6754 r23535: accept numeric ntstatus codes in nbench load files (ronnies wireshark
script generates numeric codes)
(This used to be commit 455895c4b1)
2007-10-10 14:53:25 -05:00
Andrew Tridgell
551575012b r23534: honour the targetrate even for loadfiles with timestamps
(This used to be commit 24b6aabd11)
2007-10-10 14:53:25 -05:00
Andrew Tridgell
2a3282f872 r23533: added --option torture:targetrate=rate to target a particular
throughput in MBytes/sec
(This used to be commit 35477e8e3d)
2007-10-10 14:53:25 -05:00