1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

3957 Commits

Author SHA1 Message Date
Jelmer Vernooij
ff0e9d44bf r5377: Put push/pull/print functions for the various types in a hash.
(This used to be commit afadd172981c8753b7e974154a843c36ef73df3a)
2007-10-10 13:09:49 -05:00
Jelmer Vernooij
ff6e58a7c4 r5376: ORPC is NDR specific, so move it to ndr.pm.
Get rid of register_enum/register_bitmap, etc. (use list of
types in ndr.pm instead)
(This used to be commit efc2e41b8df3a0171cca57291929fb63760c1662)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
ffa5c91d0f r5375: use a real DN in the WINS database. We now pass the NBT-WINS test.
(This used to be commit 807a3a1f80b1c065ee799531cdf947b31d1a109f)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
5a88d5211b r5374: - changed the dn key code in the ldb tdb backend to correctly honor
the case sensitive/insensitive flags on sections of a dn. So if a dn
  is made up of 4 attributes, and 2 of those are case insensitive and 2
  are case sensitive, then all the attribute names are uppercases, but
  only the values of the case insensitive attributes are uppercased when
  forming the tdb key.

- added code to canonicalise the dn, removing leading and trailing
  spaces from attribute names and values

- when the @ATTRIBUTES record changes, fix the dn keys of any records that should now have new
  dn keys due to changes in the case sensitivity of the record

I really did this to allow me to make the WINS database properly case
insensitive, but it is also the correct general fix for ldb, as it
matches the LDAP specification (and w2k LDAP server behaviour)
(This used to be commit 0f034dc5636d182a1d9207ad662b3fc8df7ca3e4)
2007-10-10 13:09:48 -05:00
Stefan Metzmacher
e40da81aa4 r5373: prepare infrastructure for maing different events
implementations possible

metze
(This used to be commit dd77ec754b811feb147458d76fa16833767dccea)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
40d117a893 r5372: fixed the build
(This used to be commit 2899d289455d373409c2aadc3dbefd96ea1c91b8)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
d8da32a284 r5371: on port 139 the called name needs to be in uppercase
(This used to be commit c5aef260c4581bfc0d32ec09fac3414156c40230)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
cc336df026 r5370: epoll gives more precise event bits like EPOLLHUP instead of just EPOLLIN. We need to map
these to "read" events for the events code to work on errors like connection refused
(thanks to vl for noticing this bug)
(This used to be commit 7c379590b4ca808eddef5c3ac15db25cefc5215b)
2007-10-10 13:09:48 -05:00
Tim Potter
11e6c958fd r5369: Rename torture modules so they don't conflict with files in scripting/swig.
Start porting samr torture test to new API.
(This used to be commit 14593939830e130ae306b82a6c063ec9d7f36b93)
2007-10-10 13:09:47 -05:00
Tim Potter
74e9fce454 r5368: Fix ups for domain_name field name change.
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
(This used to be commit f9ba35ff839fb612f53d8c2e6c5a64aaddc3d6a1)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
8f2ee50a27 r5367: Minor typo fixes.
rafal
(This used to be commit 64263be5346dc19af49ec929bc4caf31f93b16c6)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
2e61d60cdc r5366: added initial code for adding user accounts to libnet makefile.
It doesn't do anything useful yet, but at least doesn't break
the build.

rafal
(This used to be commit b9dbf17366f543194f420e7e3c56c8086fb7bf1d)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
953ba3fb7d r5365: Initial code for adding user accounts via libnet call.
rafal
(This used to be commit c5fdc38b176acc70bfc163fbf1e6cf4ef67197f5)
2007-10-10 13:09:46 -05:00
Tim Potter
abc28d66e9 r5364: Rename string fields called 'domain' and 'name' to be 'domain_name'.
(This used to be commit 6749b9404d4e9876ecd964e038c608f05d2c0b69)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
2f8478b27d r5363: - ndr_%_ptr -> ndr_%_unique_ptr
- ndr_%_relative% -> ndr_%_relative_ptr%
- Change pointer_default() default to "unique"
  (DCE uses "ptr" as default, MIDL doesn't follow the standard and uses "unique")
(This used to be commit 53b4ecbcc7a8da67cde1377de6f24a3de6d229e3)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
e90c93402b r5362: Add pointer_default() support to pidl. pointer_default()
is assumed to be "ptr" if not specified (just like midl).

The validator will warn when "ptr" is used at the moment, because
pidl only supports unique, ref and relative at the moment.
(This used to be commit 31bed62a9a6f7830f523d509b67970648d40aaef)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
51a6f7b227 r5361: Rename some functions, add tests to validator.
(This used to be commit c9d7b88756039a3eb3024c886851e489c46ef67f)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
67bc7ddbe9 r5360: Remove a couple of unused functions.
(This used to be commit d8a0a6972156c3211001b7f98e990c167be2468c)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
e199f4cef2 r5358: - added initial WINS server code. It passes most of the NBT-WINS test, but doesn't yet
do secure server WACK responses

- added a ldap_string_to_time() function, for converting a LDAP
  formatted time to a time_t
(This used to be commit 9aa3313b3f93e47e3f93028e072f6a23b3c22385)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
ff4797a9e4 r5357: added ldb_msg_add_fmt(), for creating formatted ldb record values
(This used to be commit 18fb48204f4c0e22ea7e61575b3f174f30ff035c)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
907d1d413d r5356: fixed the hex coding for nbt names
(This used to be commit e467715c63624e165b79b37bd21b381d7a99d0fe)
2007-10-10 13:09:45 -05:00
Tim Potter
12ccb3c453 r5353: Throw a NTSTATUS exception if a NT error code is returned.
(This used to be commit 4a9677833167b3b26117ab1b4e7c682d9524a206)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
7b8f58c37c r5352: added a function nbt_name_string() that formats a nbt_name structure
as a human readable string. The format is designed to be able to be
used as the DN for the WINS database as well, while coping with
arbitrary bytes in the name (except nul bytes)
(This used to be commit aac3090e3504ba07124a9d480322a98efb97175e)
2007-10-10 13:09:45 -05:00
Tim Potter
49568fab37 r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
(This used to be commit be37749ac7d128fcabf82bad104d87098e2d9f55)
2007-10-10 13:09:45 -05:00
Tim Potter
55006da043 r5350: Implement an input typemap for NTSTATUS.
(This used to be commit 076ec6008e4dbd130044893f34c3fd7212bf667d)
2007-10-10 13:09:44 -05:00
Tim Potter
8cd9d7095b r5348: Implement the remaining samr connect functions and fix up setsecurity.
(This used to be commit 4b2c3c7ac56e1e428dec6205e4e69268be84cac6)
2007-10-10 13:09:44 -05:00
Andrew Tridgell
64ad8e52ec r5347: fixed the NBT-REGISTER test now that the nbt layer is case sensitive
(This used to be commit ae514f076298caeb8a84d47939c4e51f9ab5b6ce)
2007-10-10 13:09:44 -05:00
Andrew Tridgell
0487eee93a r5346: - a bit more preparation for the WINS server going in
- more NBT packet asserts, to ensure that incoming requests have all
  the elements we depend on

- open the WINS database at startup if we are configured as a WINS server

- split out the nbtd server reply packet generation code so it can be
  shared by the WINS server

- re-did the logic of what is answered by the WINS server and what by
  the B node server. It now always tries to answer by the B node, and
  only "recurses" to the WINS server for names that are not found.
(This used to be commit 5613e6b8ad9b32639caf5055f793dbc4d0a2fc19)
2007-10-10 13:09:44 -05:00
Jelmer Vernooij
801889f71a r5345: Some more minor code readability fixes.
(This used to be commit 10f3bdce80ff67e05b14c3481a05362b054d1f11)
2007-10-10 13:09:44 -05:00
Jelmer Vernooij
3f68161741 r5338: More efforts to handle types similarly.
(This used to be commit 95c4f3149925ee71e74ea36fae3a65d2eebf717c)
2007-10-10 13:09:44 -05:00
Tim Potter
4180eedd6d r5335: Add a Close() method to SamrHandle object.
Add methods for {Query,Set}Security, Shutdown, CreateUser,
Open{User,Group,Alias} and RidToSid.

Time for a torture test I think!
(This used to be commit 94a3ff2380071efccf19ca51488753d3513ab63c)
2007-10-10 13:09:44 -05:00
Andrew Bartlett
6f01a68faa r5334: Bah, it's all to hard...
Andrew Bartlett
(This used to be commit a28ca320dc604fcffe89e9096a643bb4740a1da2)
2007-10-10 13:09:43 -05:00
Andrew Tridgell
5e9c09ef25 r5333: weird, w2k3 always sends a positive name release response, even for names that
have never been registered. I wonder if there is some reason?
(This used to be commit dbef4fd5c3ae06e22fa6120a57edc0d2988a49a1)
2007-10-10 13:09:43 -05:00
Andrew Bartlett
c8ca613e93 r5330: Remove #include <sys/time.h> from includes.h.
Add #include "system/time.h" back (it was removed in some of these
places because the definitions were provided by <sys/time.h> on tridge's
platform.)

Andrew Bartlett
(This used to be commit 34b1da730304bed7fee5bae7cbde7fbccecb6af5)
2007-10-10 13:09:43 -05:00
Andrew Tridgell
30ce2c49c5 r5329: made the nbt server case sensitive
(This used to be commit 895071881920a5d6726f377f4367b588deabfb03)
2007-10-10 13:09:43 -05:00
Andrew Tridgell
dd689afdc8 r5328: - allow case sensitive nbt name lookups
- added --case-sensitive option to nmblookup

 - added case sensitivity tests to the NBT-WINS test
(This used to be commit 80a95d5688e055b36727e5c043cb36322d719763)
2007-10-10 13:09:42 -05:00
Andrew Tridgell
f3d1fa124b r5326: removed the charset conversion from the nbtname code, so we no longer
convert from/to DOS strings in NBT names. This will allow us to
support all foreign names as a WINS server, as long as they don't
contain a 0 byte.
(This used to be commit 8e5d3a74d341de086d850d823cf8a1bfc9387fe8)
2007-10-10 13:09:41 -05:00
Andrew Tridgell
82fd60e904 r5325: - expanded the NBT-WINS test to include scopes
- fixed the bugs that the new test found
(This used to be commit 6d775f12168d51ce92a3f7e17f4bf06357d41a06)
2007-10-10 13:09:41 -05:00
Andrew Tridgell
9515fc4406 r5322: removed a whole bunch of #include lines that minimal_includes.pl
thinks are not needed. Now to see how this fares on the build farm :)
(This used to be commit 80ffcc650c9c86141507edd8338b97814a85f868)
2007-10-10 13:09:41 -05:00
Andrew Tridgell
ecbde2c1c6 r5321: added a program that works out the minimal set of #include lines
needed for a C file in Samba. It tries compiling without each #include
line in turn, and looks for any changes in the compiler output.

Note that the output is not guaranteed correct, it might be that an
include is needed onlyu on some platforms. To cope with this, it
doesn't consider lines with the word "needed" on them. So add a
comment like this:

#include "foo.h" /* needed by systems without kerberos */

and it will know to skip it

It also skips any include lines in a #if section.

If you are brave, you can give it the option --remove and it will
remove lines it thinks are not needed. Please review carefully before
committing the results, and watch the build farm for breakage.
(This used to be commit 348a5f1d4d272fffaad7680c8d24ef59829dbea2)
2007-10-10 13:09:41 -05:00
Jelmer Vernooij
0de6851e83 r5320: Treat structs and unions somewhat more similarly:
- use same names in hashes (DATA -> ELEMENTS, etc)
 - [case()] and [default] are no longer special case, they're just regular properties
(This used to be commit 6a0f599f822f5c42d93e78c13765804ab2223968)
2007-10-10 13:09:41 -05:00
Jelmer Vernooij
af7e9f2b59 r5319: Make some more alignment code generic, move NDR-specific stuff to
parser.pm (now renamed to ndr.pm).
(This used to be commit a469a5fefb4e6941264c11f4bde60eab71f6f7aa)
2007-10-10 13:09:41 -05:00
Andrew Tridgell
341395db51 r5310: allow for rounding errors in the sleep test
(This used to be commit bd2c55a5193b29b28c4fbde643c302f0d81c95a6)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
a0e6f6c05b r5309: removed ads.h from includes.h
(This used to be commit 196c45b834c39f293b9533cec5cfe5a77382d4e2)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
75ddf59ea1 r5308: trimmed back a lot of the old macros from smb_macros.h
(This used to be commit bf43c9bdcf9e654d123f6a2b29feb9189ca9e561)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
a5bd1ccada r5307: removed db_wrap.h from includes.h
(This used to be commit 826baec7b348814a7bbdcdbec8c8526514f25da1)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
6aa6dce3f7 r5306: removed all the unused mutex functions from mutex.c. When (if?) we
decide to reinstate the mutex code for the threads process model, I'd
like to do it a little differently. At least this gets it out of
includes.h for now.
(This used to be commit cfee0fb02e10add22b6c436bdfa95d1a8f5f3def)
2007-10-10 13:09:40 -05:00
Andrew Tridgell
501379431c r5305: removed libcli/ldap/ldap.h from includes.h
(This used to be commit 0df3fdd8178085c40f9cd776cc3e1486ca559c8e)
2007-10-10 13:09:39 -05:00
Andrew Tridgell
bed7c9ec32 r5304: removed lib/socket/socket.h from includes.h
(This used to be commit b902ea546d2d1327b23f40ddaeeaa8e7e3662454)
2007-10-10 13:09:39 -05:00
Andrew Tridgell
8fb475f626 r5303: fixed build of gconf registry backend
(This used to be commit b4993c738ba7ce38de4eaf6270db60f8cd551cdd)
2007-10-10 13:09:39 -05:00