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

10139 Commits

Author SHA1 Message Date
Simo Sorce
3ddab071eb r17894: better name for the internal syntax type
(This used to be commit 4241a1bb832461ca44ce0f20cb770ea2b6f2d7e3)
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
3400d91197 r17893: add a function to disable the null_context
metze
(This used to be commit 7cab4285b1b61ad5cb425e42d89bcf7d645b0710)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
98a1bd7fb3 r17892: fix the last talloc c++ warning
metze
(This used to be commit 6955ffe4544eddd9e34461f57858480b1acf49c9)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
45b8c41038 r17891: remove c++ warnings from talloc
metze
(This used to be commit fb73ce8d4364a1da3c320034d90c0556529c61c4)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
6e4043cb05 r17890: add -Wc++-compat option to gcc but don't use it yet
metze
(This used to be commit 6b4f788c71a6d445ded522d89cd5425f9e2fb391)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
1e0cb68263 r17889: allocate a valid element where the pointer can point to,
fix c++ warnings

metze
(This used to be commit b15e4c7cfa4df3dc429945e4d330a8a9766eb1a6)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
787a4d6f45 r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()
functions to get rid of c++ warnings

metze
(This used to be commit 7579503bb886e9c4cc08756013f5311ce550c9fd)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
66314777f6 r17887: fix c++ warnings
metze
(This used to be commit ccef1f729089939b9250f1b177d5241f8baaa5eb)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
5ed074715a r17886: add talloc_ptrtype() and talloc_array_ptrtype(),
see the manpage what they do:-)

metze
(This used to be commit bfca83c91e47e9017474809cd7bc8b2e6e20416a)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
82d4c5095d r17885: use _TALLOC_TYPEPF() consitently
metze
(This used to be commit 155cd6b88283b85c53c7ec65efcf431da7b649ac)
2007-10-10 14:16:51 -05:00
Volker Lendecke
6f7dd6ca07 r17884: Shape up the snprintf fix after Metzes comments
(This used to be commit 66b6456eee579623b64c649356ab0175c46f5789)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
200619b368 r17883: check if talloc_asprintf() works correct
metze
(This used to be commit bb79542edbb290c7dbea7c921b0e911dd1b3366b)
2007-10-10 14:16:50 -05:00
Stefan Metzmacher
a93ad7490c r17882: merge change from samba3
metze
(This used to be commit eca7085850ba8475cc01dda1911c4222dd14c1a6)
2007-10-10 14:16:50 -05:00
Andrew Bartlett
2b99336a56 r17876: Require one less patch for the LDAP backend to work.
This lets the modules or backend generate the host and domain GUID,
rather than the randguid() function.  These can still be specified
from the command line.

Andrew Bartlett
(This used to be commit 32996ca9d62568006f8bee85a1f2f37c64c04fb5)
2007-10-10 14:16:50 -05:00
Andrew Bartlett
9356831484 r17871: Add an option to make the system account behave as anonymous on the
network.  This helps where we are trying to talk to an LDAP server,
until we share a common SASL authentication scheme.

Andrew Bartlett
(This used to be commit f9d39dba41441cd5d06964ce0aebef9bcba40759)
2007-10-10 14:16:50 -05:00
Andrew Bartlett
69ecd9538f r17870: This module (for the moment) handles the modifyTimestamp generation. For that, it needs to hook into the modify operation.
Andrew Bartlett
(This used to be commit d22117a53bafa4bb72c854353620099b5a6f81d8)
2007-10-10 14:16:50 -05:00
Simo Sorce
bc2e3aa3f3 r17868: remove duplicated attributes from list
(This used to be commit fab0e66281ca0feddf1ce26249706e865856b17a)
2007-10-10 14:16:49 -05:00
Simo Sorce
0c34fbe311 r17860: Let's commit the work down up to now on the new schema module.
At the moment it is able to validate an object has no conflicting
objectlasses that it meets the criteria to be inserted as child of
the parent and also sorts and create the objectclass hierarchy so
that the objectclass .c module can be obsoleted.

Not activated by default as we have to completely rework the
current provisioning method. (In my tests I could not activate
it before all other ldif except for the one that create users
were loaded, make test seem to be happy anyway if it is activated
after provisioning).

Next steps will be attribute and attribute syntax checking on add operation.
And then the modify operation will follow.

Simo.
(This used to be commit 0c444ba1adfb9ce5cfa736bf0620aa3bec66050d)
2007-10-10 14:16:49 -05:00
Simo Sorce
d0ef5aad17 r17859: Fix some return values
(This used to be commit 5b4fc48c49bada2711e356c557ba5f45e34396f6)
2007-10-10 14:16:49 -05:00
Rafal Szczesniak
8856986214 r17858: Add new libnet domain open tests.
rafal
(This used to be commit c9b0b1fb67855ed3bfd1f34c664275bd7f34ff8c)
2007-10-10 14:16:49 -05:00
Rafal Szczesniak
e1e0645d18 r17857: A couple of new tests.
rafal
(This used to be commit 6db488cc6e29704ae2ae17b2875a76ded5d86b88)
2007-10-10 14:16:49 -05:00
Rafal Szczesniak
1e46d3a46a r17856: The two new functions - libnet_LookupName and libnet_UserInfo.
These two perform name resolving in SAM database and fetching
user account information, respectively. The code is quite rough
yet, but it builds and basic tests work. Now, I'm working on
cleaning it up...

rafal
(This used to be commit 4a932255a01d9f1ac91feb9e371494933f1ae74e)
2007-10-10 14:16:48 -05:00
Volker Lendecke
1bdf669209 r17849: Next round for RPC-SAMBA3-SHARESEC
(This used to be commit e17371b7f970fe4cc91f8034c18292cc3c22f161)
2007-10-10 14:16:48 -05:00
Volker Lendecke
7917a26fab r17848: Ok, this did not do it. Still got the same problem.
(This used to be commit bb393603707ada3d4b917f8374b7738f16c78f46)
2007-10-10 14:16:48 -05:00
Volker Lendecke
9ba16109e5 r17846: Ok, this is a patch that needs further discussion. On Solaris, snprintf seems
to be broken. The %lu modifies apparently can not cope with the high
bit==1. In dom_sid_string I added some printfs and got:

auth: 21
auth: 2666793276
auth: 679821296
auth: 2310223117
auth: 1206
sid=S-1-5-21-8446744072081377596-679821296-8446744071724807437-1206

The "auth:" values are direct printfs, the sid= is the resulting code from
dom_sid_string.

I could not reproduce it with a simple test program, and #ifdef'ing out
HAVE_SNPRINTF in config.h manually does not help either, probably because the
dynamic linker overwrites the symbol in lib/replace.

Checking it in because it fixes the RPC-SAMBA3-SHARESEC test directly on host
"sunx", I would like to see whether it also fixes IRIX and AIX.

Volker
(This used to be commit 1a9401738f652a87d377a32086342f5f98525fc2)
2007-10-10 14:16:48 -05:00
Volker Lendecke
03dd0d5fc8 r17844: The AIX compiler thinks { } is a syntax error
(This used to be commit 4189736e09dab2b7ff57b7bba04d54c0ffeea140)
2007-10-10 14:16:48 -05:00
Volker Lendecke
6e9097045f r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.

Volker
(This used to be commit fd166ca0c079d83081bc1d631fe40b965c7873d4)
2007-10-10 14:16:47 -05:00
Volker Lendecke
a0d6264b90 r17841: Revert 17840, libldb.a defines strnlen. Sorry for the noise
(This used to be commit 1de34590821b0c076bf8d48cbdae97f33275647e)
2007-10-10 14:16:47 -05:00
Volker Lendecke
d3c55f028e r17840: A step towards building on Solaris which appears not to have strnlen.
Volker
(This used to be commit ebf75c6196afdd4bfa4f11bb1d45d385ab0babed)
2007-10-10 14:16:47 -05:00
Simo Sorce
25ba47eaf8 r17839: do not reference possibleInferiors we have not extracted
trim duplicate may attributes
(This used to be commit 4975659fd70abdbae42ee378b7be766102f4df55)
2007-10-10 14:16:47 -05:00
Stefan Metzmacher
a9ac74a98b r17838: revert rev 17754
readd --always-create option to mkproto.pl

metze
(This used to be commit 1686c69d0e784220aba053e3dd21f6d14cc86929)
2007-10-10 14:16:46 -05:00
Simo Sorce
88b04ab6e6 r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded.

Introduce a function to retrieve the value where needed.
(This used to be commit 0caf6a44e03393c645030a9288e7dfd31e97c98b)
2007-10-10 14:16:46 -05:00
Simo Sorce
fd4e294c41 r17829: Fix the order of the bytes
(This used to be commit 9910c01a3a5dd417c47e83b9c9b6df8f4547e816)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
60898ca0b7 r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That
ensures we never try twice
(This used to be commit 946901e5dde9d31727448070a06e56da38d4a59e)
2007-10-10 14:16:46 -05:00
Volker Lendecke
2e771a7e1b r17827: Fix an error message
(This used to be commit 4242309d54d201b35e9cc96c0359ded64cf7485a)
2007-10-10 14:16:46 -05:00
Volker Lendecke
545a588536 r17826: Add line numbers to the d_printfs
(This used to be commit 8df16dce4d67c17a24aba934f0d656aa5670e539)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
e031bfc41c r17825: I broken cracknames in my last patch - fix it up
(This used to be commit 4ec4f91a437bdfab7b8e0fd1e43c0b8b1927e461)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
b21b119cbc r17824: add a wrapper for the common partitions_basedn calculation
(This used to be commit 09007b0907662a0d147e8eb21d5bdfc90dbffefc)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
0fd9807942 r17823: get rid of most of the samdb_base_dn() calls, as they are no longer
needed in searches
(This used to be commit a5ea749f0ac63bf495a55ee8d9d002208ab93572)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
fb36e279e7 r17822: the ildap ldb backend doesn't need the auto rootDSE logic any more
(This used to be commit c670837cc0dd04834a283bde0471c702a34c66c9)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
a2ca0b5e3c r17821: changed ldb_search() and the ldbsearch command line utility to
automatically work out the basedn when basedn==NULL. The basedn is
fetched from the rootDSE defaultNamingContext value (if there is one)

This means we don't have to have the defaultNamingContext logic in
lots of places. It makes a lot of sense to me to have basedn==NULL
mean "use the default, as given by the database"

Note that explicitly specifing a basedn of '' is not the same thing,
and will not trigger this code

The baseDN is cached in a ldb opaque, so we only have to fetch it once
(This used to be commit 5d1b66b68fc517ce684f75e466ed5f25e46857d5)
2007-10-10 14:16:44 -05:00
Andrew Tridgell
6a4794452f r17820: simplify the code flow a little
(This used to be commit 221272e3930e1fbf30df1ad19713935d38cde46c)
2007-10-10 14:16:44 -05:00
Jelmer Vernooij
50f5c65f78 r17811: Add .bzrignore file
(This used to be commit 10419a9fba0e56dbad9abe9e0e7b9c22caf02b3f)
2007-10-10 14:16:44 -05:00
Stefan Metzmacher
7f38e8644b r17794: ifdef out unused macros
metze
(This used to be commit 6968136621dc75532a19c910bf559aa37b7e41bd)
2007-10-10 14:16:44 -05:00
Stefan Metzmacher
fef30c770a r17793: add -Wmissing-prototypes, -Wmissing-declarations, -Wmissing-field-initializers
gcc options, but don't enable them yet.

we should step by step try to enable them, after removing the flood of warnings
they would generate.

metze
(This used to be commit 40fb476a9cc53c757dcf07e879107c4572b8a1ee)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
1713b43c1a r17792: io.out.winsserver is a const char *,
and iname->winserver = talloc_steal(iname, io.out.winsserver)
generated a warning, so I changed iname->winsserver to also
be a const char *.

then a talloc_free(iname->winsserver) would generate a warning,
but we can steal it into the tmp_ctx without a warning
and that gets free'ed a few lines later.

metze
(This used to be commit fdef17f81e5fc48cca3dd7611d6d5007147473b1)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
2fe8a02f98 r17791: get rid of another compiler warning
metze
(This used to be commit ba866665f5baffc1dc703d60114b9f1856c4b886)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
1d8fa3ccac r17790: replace uses -ldl and should directly depend on it
metze
(This used to be commit 560a3058e53479133015d1b0a7cd149393c45438)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
168e9ec231 r17789: remove compiler warnings
metze
(This used to be commit dec228be4d4a68e2a6794ad4e7a9224e040fa7f2)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
6268e2f148 r17788: fix compiler warnings
metze
(This used to be commit 00fcc4f16a01a0c6a70f86c8bd9d1f9801dfd9df)
2007-10-10 14:16:42 -05:00