kai/samba.git
16 years agor11087: - add type,name,scope as attributes to winsRecords,
Stefan Metzmacher [Sat, 15 Oct 2005 10:15:42 +0000 (10:15 +0000)]
r11087: - add type,name,scope as attributes to winsRecords,
  so you can use them in search filters,
  only for administration not used inside the winserver code
- fix the samba3 ugrade scripts to create a correct samba4 wins.ldb

metze

16 years agor11086: add sys.unix2nttime() function
Stefan Metzmacher [Sat, 15 Oct 2005 10:04:33 +0000 (10:04 +0000)]
r11086: add sys.unix2nttime() function

metze

16 years agor11085: as ejs doesn't support '&' '|' bitwise AND and OR,
Stefan Metzmacher [Sat, 15 Oct 2005 09:32:04 +0000 (09:32 +0000)]
r11085: as ejs doesn't support '&' '|' bitwise AND and OR,
we need some helper functions for this

metze

16 years agor11084: - allow hex numbers with 'a'...'f' digits to be parsed
Stefan Metzmacher [Sat, 15 Oct 2005 09:28:56 +0000 (09:28 +0000)]
r11084: - allow hex numbers with 'a'...'f' digits to be parsed
- parse hex numbers correct

tridge: how could we submit this to the upstream appweb library?

metze

16 years agor11083: use the addresses from the record
Stefan Metzmacher [Sat, 15 Oct 2005 09:25:43 +0000 (09:25 +0000)]
r11083: use the addresses from the record

metze

16 years agor11082: Fix a segfault
Volker Lendecke [Sat, 15 Oct 2005 08:17:22 +0000 (08:17 +0000)]
r11082: Fix a segfault

16 years agor11081: Remember to remove unused variables.
Jeremy Allison [Sat, 15 Oct 2005 00:50:03 +0000 (00:50 +0000)]
r11081: Remember to remove unused variables.
Jeremy.

16 years agor11080: Narrowing down on the #1828 PPC bug. The PPC client sends an
Jeremy Allison [Sat, 15 Oct 2005 00:48:47 +0000 (00:48 +0000)]
r11080: Narrowing down on the #1828 PPC bug. The PPC client sends an
initial NTLMSSP negotiate blob of only 16 bytes - no strings
added ! (So don't try parsing them).
Jeremy.

16 years agor11077: Fix [string] for Samba3
Jelmer Vernooij [Sat, 15 Oct 2005 00:45:16 +0000 (00:45 +0000)]
r11077: Fix [string] for Samba3

16 years agor11076: Still working on bug #1828, PPC hell. The PPC client sends the
Jeremy Allison [Fri, 14 Oct 2005 22:04:24 +0000 (22:04 +0000)]
r11076: Still working on bug #1828, PPC hell. The PPC client sends the
NTLMSSP client and domain strings as Unicode, even when setting
flags as OEM. Cope with this.
Jeremy.

16 years agor11070: Fix a cut&paste error, now wbinfo can properly separate domain and user...
Volker Lendecke [Fri, 14 Oct 2005 21:41:08 +0000 (21:41 +0000)]
r11070: Fix a cut&paste error, now wbinfo can properly separate domain and user...

Volker

16 years agor11068: Fix pam_auth_crap, remove the sync code. I don't know what it was when I
Volker Lendecke [Fri, 14 Oct 2005 21:05:45 +0000 (21:05 +0000)]
r11068: Fix pam_auth_crap, remove the sync code. I don't know what it was when I
tested it, but I can not reproduce the problem I had with abartlett's initial
implementation anymore.

Fix a bug found using valgrind.

Volker

16 years agor11067: Support for [string] in the Ethereal parser generator
Jelmer Vernooij [Fri, 14 Oct 2005 19:57:41 +0000 (19:57 +0000)]
r11067: Support for [string] in the Ethereal parser generator

16 years agor11061: Samba3 parser generator fixes:
Jelmer Vernooij [Fri, 14 Oct 2005 16:40:47 +0000 (16:40 +0000)]
r11061: Samba3 parser generator fixes:
* Add (limited) support for [string]
* Don't generate (and set) header elements for top level ref pointers as
they don't appear on the wire

16 years agor11058: remove useless talloc context
Stefan Metzmacher [Fri, 14 Oct 2005 15:55:51 +0000 (15:55 +0000)]
r11058: remove useless talloc context

metze

16 years agor11053: fix the logic,
Stefan Metzmacher [Fri, 14 Oct 2005 14:45:28 +0000 (14:45 +0000)]
r11053: fix the logic,

this should fix make test

metze

16 years agor11052: bring samba4 uptodate with the samba4-winsrepl branch,
Stefan Metzmacher [Fri, 14 Oct 2005 14:02:47 +0000 (14:02 +0000)]
r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze

16 years agor11051: fix the build,
Stefan Metzmacher [Fri, 14 Oct 2005 13:19:31 +0000 (13:19 +0000)]
r11051: fix the build,

sorry for the latest spam!

I was testing svk push (wasn't such a good idea...)

metze

16 years agor11048: r10539@SERNOX: metze | 2005-09-27 14:59:47 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 13:02:00 +0000 (13:02 +0000)]
r11048:  r10539@SERNOX:  metze | 2005-09-27 14:59:47 +0200
 fix the build for changes from SAMBA_4_0 branch

 metze
 r10541@SERNOX:  metze | 2005-09-27 15:05:33 +0200
 use a transaction when we allocate a new version

 metze
 r10549@SERNOX:  metze | 2005-09-27 18:58:37 +0200
 - add first start of wins pull replication
 - we not yet apply records to our database but we fetch them correct form our partners
   (we need conflict handling for this)
 - we also need to filter out our own records!

 metze
 r10568@SERNOX:  metze | 2005-09-28 11:33:04 +0200
 move composite helpers to a seperate file, create a a seperate file for the conflict resolving logic

 metze
 r10571@SERNOX:  metze | 2005-09-28 12:00:17 +0200
 add forward declarations...to fix the build

 metze
 r10612@SERNOX:  metze | 2005-09-29 16:11:06 +0200
 we have a nbt_name now, and don't need to parse it

 metze
 r10614@SERNOX:  metze | 2005-09-29 16:38:35 +0200
 filter out our own records

 metze
 r10620@SERNOX:  metze | 2005-09-29 18:07:08 +0200
 - handle mutliple addresses in WREPL_REPL_SEND_REPLY
 - make strings always valid talloc pointers

 metze
 r10621@SERNOX:  metze | 2005-09-29 18:09:41 +0200
 use debug level 2

 metze
 r10622@SERNOX:  metze | 2005-09-29 18:48:05 +0200
 - add one more debug message when we reply no record
 - fix min max logic

 metze
 r10623@SERNOX:  metze | 2005-09-29 20:49:06 +0200
 build fixes...

 metze
 r10629@SERNOX:  metze | 2005-09-30 00:11:41 +0200
 - use seperate attributes for type, state, nodetype, is_static

 ... the winserver.c code needs some more updates to correctly,
 create special group and multihomed registrations...

 metze
 r10640@SERNOX:  metze | 2005-09-30 04:07:34 +0200
 - add some short path for the composite helper functions
   they will be used in the next commit

 metze
 r10642@SERNOX:  metze | 2005-09-30 06:29:06 +0200
 fix the build

 metze
 r10655@SERNOX:  metze | 2005-09-30 17:36:49 +0200
 - implement the WREPL_REPL_UPDATE* and WREPL_REPL_INFORM*
   this includes the connection fliping into a client connection
   for WREPL_REPL_UPDATE*

 NOTE: I not yet found out how to get the w2k server to use INFORM against samba4
       it uses inform against w2k and w2k3 but UPDATE against nt4 and samba4

 what's left now is to be able to initiate INFORM and UPDATE requests to notify
 our pull partners

 metze
 r10727@SERNOX:  metze | 2005-10-05 14:11:05 +0200
 fix the build

 metze
 r10770@SERNOX:  metze | 2005-10-06 16:56:01 +0200
 - move the table filling to a seperate function, will be reused later
 - fix the build, wrepl_nbt_name fixes
 - remove state -> update_state

 metze
 r10771@SERNOX:  metze | 2005-10-06 17:04:48 +0200
 add a function to create a wreplsrv_in_connection from a client connection

 metze
 r10772@SERNOX:  metze | 2005-10-06 17:13:51 +0200
 - make the connection code more generic to handle the pull cached connection,
   push cached connection or given connections
 - when we don't use a cached connection, disconnection when a pull_cycle is done
 - fix the build and use the configured source ip

 metze
 r10773@SERNOX:  metze | 2005-10-06 17:18:49 +0200
 - add composite functions for push notification

 metze
 r10774@SERNOX:  metze | 2005-10-06 17:23:46 +0200
 - use periodic push notifycation, this is just for now
   as it needs to be configurable and and be triggered when the local database
   has changes since the last notify
 - I also need to work out how to decide if the partner supports
   persistent connections and WREPL_REPL_INFORM* messages

 metze
 r10923@SERNOX:  metze | 2005-10-12 16:52:34 +0200
 fix the build becuse of conflicts with main SAMBA_4_0 tree

 metze

16 years agor11047:
Stefan Metzmacher [Fri, 14 Oct 2005 13:00:36 +0000 (13:00 +0000)]
r11047:

16 years agor11045:
Stefan Metzmacher [Fri, 14 Oct 2005 12:57:23 +0000 (12:57 +0000)]
r11045:

16 years agor11044:
Stefan Metzmacher [Fri, 14 Oct 2005 12:57:00 +0000 (12:57 +0000)]
r11044:

16 years agor11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:42 +0000 (12:56 +0000)]
r11043:  r10362@SERNOX:  metze | 2005-09-20 22:37:28 +0200
 repare for pull replication support

 metze

16 years agor11042: r10361@SERNOX: metze | 2005-09-20 22:36:28 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:26 +0000 (12:56 +0000)]
r11042:  r10361@SERNOX:  metze | 2005-09-20 22:36:28 +0200
 we should only use 255.255.255.255 for group records,
 only when we reply, not when the name is registered.
 the real address is used for replication

 metze

16 years agor11041: r10358@SERNOX: metze | 2005-09-20 21:40:03 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:13 +0000 (12:56 +0000)]
r11041:  r10358@SERNOX:  metze | 2005-09-20 21:40:03 +0200
 fix some missing nbt_peer_socket cases

 metze

16 years agor11040: r10357@SERNOX: metze | 2005-09-20 21:28:11 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:59 +0000 (12:55 +0000)]
r11040:  r10357@SERNOX:  metze | 2005-09-20 21:28:11 +0200
 - as the old records are broken sinse the last winsdb_dn() changes, (the dn components order was reversed)
   we can use nicer attribute and objectClass names...

 - use much more verbose error handling for winsdb_*
 - print a debug message when we found a corrupted record

 metze

16 years agor11039: r10352@SERNOX: metze | 2005-09-20 16:50:04 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:41 +0000 (12:55 +0000)]
r11039:  r10352@SERNOX:  metze | 2005-09-20 16:50:04 +0200
 move stuff the belong to incoming connections only
 into a seperate file wrepl_in_connection.c

 metze

16 years agor11038: r10351@SERNOX: metze | 2005-09-20 16:11:17 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:27 +0000 (12:55 +0000)]
r11038:  r10351@SERNOX:  metze | 2005-09-20 16:11:17 +0200
 fix namebuf_len, when type is 0x00

 metze

16 years agor11037:
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:52 +0000 (12:54 +0000)]
r11037:

16 years agor11036: r10349@SERNOX: metze | 2005-09-20 15:38:31 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:26 +0000 (12:54 +0000)]
r11036:  r10349@SERNOX:  metze | 2005-09-20 15:38:31 +0200
 we know answer send_requests correctly

 metze

16 years agor11035: r10347@SERNOX: metze | 2005-09-20 13:40:24 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:06 +0000 (12:54 +0000)]
r11035:  r10347@SERNOX:  metze | 2005-09-20 13:40:24 +0200
 make wreplsrv_find_owner public

 metze

16 years agor11034: r10344@SERNOX: metze | 2005-09-20 11:35:54 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:53:50 +0000 (12:53 +0000)]
r11034:  r10344@SERNOX:  metze | 2005-09-20 11:35:54 +0200
 create winsdb_record() and winsdb_message() as public functions
 so that they can be used in the wrepl_server/

 metze

16 years agor11033: r10343@SERNOX: metze | 2005-09-20 11:03:20 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:52:51 +0000 (12:52 +0000)]
r11033:  r10343@SERNOX:  metze | 2005-09-20 11:03:20 +0200
 - reply to table_queries
 - reply to a send_request with an empty send_reply

 metze

16 years agor11032: r10342@SERNOX: metze | 2005-09-20 11:00:26 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:52:35 +0000 (12:52 +0000)]
r11032:  r10342@SERNOX:  metze | 2005-09-20 11:00:26 +0200
 - load our wins partners at start time:
 # this is a sample partner record:
 dn: name=SERNOX4-1,CN=PARTNERS
 objectClass: wreplPartner
 name: SERNOX4-9
 address: 172.31.1.1
 ourAddress: 172.31.9.1
 type: 0x3
 pullInterval: 3600

 - go through all winsdb records in the database and create the wins_owner table,
   but don't add ourself to it as out nbt task will update the db too, we refetch
   the local max_versiion, each time we need it, (that typicaly onces per replication cycle)

 metze

16 years agor11030: r10338@SERNOX: metze | 2005-09-20 09:20:49 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:51:51 +0000 (12:51 +0000)]
r11030:  r10338@SERNOX:  metze | 2005-09-20 09:20:49 +0200
 fix uninitialized variable

 metze

16 years agor11029:
Stefan Metzmacher [Fri, 14 Oct 2005 12:51:36 +0000 (12:51 +0000)]
r11029:

16 years agor11027: r10319@SERNOX: metze | 2005-09-19 18:31:23 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:50:11 +0000 (12:50 +0000)]
r11027:  r10319@SERNOX:  metze | 2005-09-19 18:31:23 +0200
 - store the wins owner on the record and the wins owner and expire time on each address
 - we use "0.0.0.0" to mark entries which are registered at the local wins server
 - we use this ldif-format:
 address: 172.31.9.1;winsOwner:0.0.0.0;expireTime:20050923032337.0Z
 address: 172.31.1.1;winsOwner:172.31.9.202;expireTime:20050923032330.0Z

 metze

16 years agor11026: r10318@SERNOX: metze | 2005-09-19 16:38:15 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:49:55 +0000 (12:49 +0000)]
r11026:  r10318@SERNOX:  metze | 2005-09-19 16:38:15 +0200
 move to struct winsdb_addr, (I'll add expiry_time and the wins_owner later

 tridge: can you please review the new winsdb_addr_* functions carefull, look for off-by-one bugs, etc.

 metze

16 years agor11025: r10313@SERNOX: metze | 2005-09-19 12:19:27 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:49:36 +0000 (12:49 +0000)]
r11025:  r10313@SERNOX:  metze | 2005-09-19 12:19:27 +0200
 add wrapper functions for the "address" attribute in the winsdb,
 the goal is to store the expiry time and the wins owner per address,
 which is needed for wins replication

 metze

16 years agor11024: r10311@SERNOX: metze | 2005-09-19 11:27:34 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:48:34 +0000 (12:48 +0000)]
r11024:  r10311@SERNOX:  metze | 2005-09-19 11:27:34 +0200
 remove doublicate NULL-pointer check

 metze

16 years agor11023: r10310@SERNOX: metze | 2005-09-19 11:21:39 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:48:20 +0000 (12:48 +0000)]
r11023:  r10310@SERNOX:  metze | 2005-09-19 11:21:39 +0200
 - open the winsdb in the wrepl server
 - add dummy function for setup the replication partners

 metze

16 years agor11022: r10309@SERNOX: metze | 2005-09-19 11:08:37 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:47:57 +0000 (12:47 +0000)]
r11022:  r10309@SERNOX:  metze | 2005-09-19 11:08:37 +0200
 - add winsdb_connect() function, so that the winsdb can be opened by the wrepl_server/ code
 - remove maintaining of a min_version field, as it was implemented incorrect, and is maybe not needed at all
 - fix handling of max_version, (we started with 0, on each server start)

 metze

16 years agor11014: r10139@SERNOX: metze | 2005-09-10 10:32:36 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:44:47 +0000 (12:44 +0000)]
r11014:  r10139@SERNOX:  metze | 2005-09-10 10:32:36 +0200
 - w2k just ignores invalid packets, so we do now
 - w2k only checks the assoc_ctx when the opcode has the sepcific obcode bit's set
 - terminate the connection, when getting a WREPL_STOP_ASSOCIATION packet
 - some more special error handling

 proper torture test for all this cases are following later

 metze

16 years agor11011: r10124@SERNOX: metze | 2005-09-09 20:22:00 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:43:50 +0000 (12:43 +0000)]
r11011:  r10124@SERNOX:  metze | 2005-09-09 20:22:00 +0200
  r10113@SERNOX:  metze | 2005-09-09 18:00:02 +0200
  rename libcli/wins to libcli/wrepl

  metze
  r10115@SERNOX:  metze | 2005-09-09 18:01:49 +0200
  bind client connection to the best interface, to the partner

  metze
  r10116@SERNOX:  jelmer | 2005-09-09 18:23:50 +0200
  Print out a couple more warnings.

16 years agor11007: r10109@SERNOX: metze | 2005-09-09 12:29:12 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:38:07 +0000 (12:38 +0000)]
r11007:  r10109@SERNOX:  metze | 2005-09-09 12:29:12 +0200
 - move structs to a seperate header file
 - move the code for the wreplsrv_in_call handling to a seperate file

 metze

16 years agor11004: r10083@SERNOX: metze | 2005-09-08 16:50:32 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:37:13 +0000 (12:37 +0000)]
r11004:  r10083@SERNOX:  metze | 2005-09-08 16:50:32 +0200
 This is the start of a WINS-Replicaton server:

 The design is to handle incoming and outgoing connections,
 in one process, because it make thing much easier, and there's
 no need to it otherwise.

 The current code only parses incoming packets, and can reply
 to them, but currently only a standard error packets STOP_ASSOCIATON
 with reason == 4 (I think it means your are not configured as a wins partner of me)

 (the server service is called "wrepl")

 metze

16 years agor10997: r11980@SERNOX (orig r10037): metze | 2005-09-05 14:21:40 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:22:15 +0000 (12:22 +0000)]
r10997:  r11980@SERNOX (orig r10037):  metze | 2005-09-05 14:21:40 +0200
 add struct nbt_peer_socket and use it instead of passing const char *addr, uint16 port everyhwere

 (tridge: can you review this please, (make test works)

 metze

16 years agor10995: fix released vs. released
Stefan Metzmacher [Fri, 14 Oct 2005 12:01:22 +0000 (12:01 +0000)]
r10995: fix released vs. released

metze

16 years agor10993: - make us able to check released records, we can only do that by finding...
Stefan Metzmacher [Fri, 14 Oct 2005 11:18:01 +0000 (11:18 +0000)]
r10993: - make us able to check released records, we can only do that by finding out the old record was gone
- add more printf(), so -d 10 isn't needed any more

metze

16 years agor10991: - create always a valid bind_info28 blocks, so that we don't need to work...
Stefan Metzmacher [Fri, 14 Oct 2005 08:19:21 +0000 (08:19 +0000)]
r10991: - create always a valid bind_info28 blocks, so that we don't need to work with unions
  in the main code
- loop also in level 1,2 replies

metze

16 years agor10990: the beginnings of a program designed to work out the minimal schema
Andrew Tridgell [Fri, 14 Oct 2005 07:38:16 +0000 (07:38 +0000)]
r10990: the beginnings of a program designed to work out the minimal schema
needed to represent all the current records on a ADS LDAP server. The
idea is we will use something based on this code to work out exactly
what schema elements we will need for our initial ADS schema. I plan
on expanding this code to automatically work out attribute properties,
and write out a schema file that we can load into ldb.

Interestingly, it looks like we only need 43 objectclasses and around
200 attributes to represent all records of a newly installed w2k3 ADS
server.

16 years agor10988: print out the password blobs, with
Stefan Metzmacher [Fri, 14 Oct 2005 06:58:39 +0000 (06:58 +0000)]
r10988: print out the password blobs, with

--option="dssync:print_pwd_blobs=yes"

metze

16 years agor10987: add support for tcp kdc requests
Stefan Metzmacher [Fri, 14 Oct 2005 06:12:05 +0000 (06:12 +0000)]
r10987: add support for tcp kdc requests

metze

16 years agor10986: loop also when we use mszip compression
Stefan Metzmacher [Fri, 14 Oct 2005 06:07:23 +0000 (06:07 +0000)]
r10986: loop also when we use mszip compression

metze

16 years agor10985: To aid in testing, this allows us to easily force kerberos to use UDP or...
Andrew Bartlett [Fri, 14 Oct 2005 06:06:18 +0000 (06:06 +0000)]
r10985: To aid in testing, this allows us to easily force kerberos to use UDP or TCP.

Andrew Bartlett

16 years agor10984: fix valgrind warnings, I had used that to check if w2k3 accept random values...
Stefan Metzmacher [Fri, 14 Oct 2005 05:52:03 +0000 (05:52 +0000)]
r10984: fix valgrind warnings, I had used that to check if w2k3 accept random values here,
as w2k generates also random stuff here

metze

16 years agor10983: Another case were we want to avoid DNS for unqualified names.
Andrew Bartlett [Fri, 14 Oct 2005 05:29:44 +0000 (05:29 +0000)]
r10983: Another case were we want to avoid DNS for unqualified names.

Andrew Bartlett

16 years agor10982: Move credentials.h into auth/credentials, and add flags needed by
Andrew Bartlett [Fri, 14 Oct 2005 04:04:52 +0000 (04:04 +0000)]
r10982: Move credentials.h into auth/credentials, and add flags needed by
previous patch.

Andrew Bartlett

16 years agor10981: Pull code to decide between and implement NTLMv2, NTLM and LM
Andrew Bartlett [Fri, 14 Oct 2005 03:57:35 +0000 (03:57 +0000)]
r10981: Pull code to decide between and implement NTLMv2, NTLM and LM
authentication out of the various callers and into the kitchen
sink.. err, credentials subsystem.

This should ensure consistant logic, as well as get us one step closer
to security=server operation in future.

Andrew Bartlett

16 years agor10980: Use ldb_attr_cmp and ldb_dn_escape_value
Andrew Bartlett [Fri, 14 Oct 2005 02:05:51 +0000 (02:05 +0000)]
r10980: Use ldb_attr_cmp and ldb_dn_escape_value

Andrew Bartlett

16 years agor10973: - make debugging a bit easier
Stefan Metzmacher [Thu, 13 Oct 2005 18:58:30 +0000 (18:58 +0000)]
r10973: - make debugging a bit easier
- add unique vs. normal group section in replica vs replica conflict testing

metze

16 years agor10971: - test static records with the same owner too
Stefan Metzmacher [Thu, 13 Oct 2005 18:24:30 +0000 (18:24 +0000)]
r10971: - test static records with the same owner too
- test with different owners, and all combinations
  of unique records

metze

16 years agor10967: move the function in the order they are used
Stefan Metzmacher [Thu, 13 Oct 2005 16:38:52 +0000 (16:38 +0000)]
r10967: move the function in the order they are used

metze

16 years agor10965: - only run the cross connection assoc test when running with -X
Stefan Metzmacher [Thu, 13 Oct 2005 16:27:05 +0000 (16:27 +0000)]
r10965: - only run the cross connection assoc test when running with -X
  this sometimes crashes the windows server
- add the first replication conflict tests
  we now test that replica records are always overwritten
  when the owner is the same

metze

16 years agor10959: fix compiler warnings
Stefan Metzmacher [Thu, 13 Oct 2005 10:02:36 +0000 (10:02 +0000)]
r10959: fix compiler warnings

metze

16 years agor10957: make a comment clearer
Andrew Tridgell [Thu, 13 Oct 2005 07:54:38 +0000 (07:54 +0000)]
r10957: make a comment clearer

16 years agor10956: Tridge thought some comments might be a good idea :-)
Andrew Bartlett [Thu, 13 Oct 2005 07:47:57 +0000 (07:47 +0000)]
r10956: Tridge thought some comments might be a good idea :-)

Andrew Bartlett

16 years agor10955: finally worked out why our computer accounts were being identified as users...
Andrew Tridgell [Thu, 13 Oct 2005 06:09:37 +0000 (06:09 +0000)]
r10955: finally worked out why our computer accounts were being identified as users in mmc.

The problem was that the samdb module was auto-adding objectClass=user
for these accounts. That would be OK, as computer accounts are
supposed to be in that objectClass, but mmc cares about the order of
the values in the objectClass attribute! It looks for the last value,
and takes that as the value to use when deciding how to manipulate the record.

So, this patch adds an explicit objectClass=user to the record when it
gets created, which tells the samdb module to not add it as well. That
fixes the order. I suspect we are missing something else though - is
objectClass supposed to auto-sort based on the schema?

16 years agor10954: added support for canonicalName in the operational module, using the
Andrew Tridgell [Thu, 13 Oct 2005 05:04:16 +0000 (05:04 +0000)]
r10954: added support for canonicalName in the operational module, using the
dn->canonicalName function abartlet just committed

16 years agor10953: Add a new function to form a canonicalName out of a DN to ldb_dn.c
Andrew Bartlett [Thu, 13 Oct 2005 04:24:49 +0000 (04:24 +0000)]
r10953: Add a new function to form a canonicalName out of a DN to ldb_dn.c

Use this new function in the client and server for the CrackNames
case, where we particularly need it.

Andrew Bartlett

16 years agor10950: More cracknames variations (including expected values) than you can
Andrew Bartlett [Thu, 13 Oct 2005 02:07:29 +0000 (02:07 +0000)]
r10950: More cracknames variations (including expected values) than you can
poke a stick at...

Andrew Bartlett

16 years agor10946: Use the right name for the remote workstation, and always initialise it.
Andrew Bartlett [Wed, 12 Oct 2005 22:25:51 +0000 (22:25 +0000)]
r10946: Use the right name for the remote workstation, and always initialise it.

Should fix a valgrind error volker is seeing.

Andrew Bartlett

16 years agor10945: Free the salt after we are done with it. May need a merge to similar
Andrew Bartlett [Wed, 12 Oct 2005 22:24:43 +0000 (22:24 +0000)]
r10945: Free the salt after we are done with it.  May need a merge to similar
code in Samba3.

Andrew Bartlett

16 years agor10941: Hmmm. Making that fn static is more correct.
Volker Lendecke [Wed, 12 Oct 2005 20:56:39 +0000 (20:56 +0000)]
r10941: Hmmm. Making that fn static is more correct.

16 years agor10940: add struct definition
Volker Lendecke [Wed, 12 Oct 2005 20:55:33 +0000 (20:55 +0000)]
r10940: add struct definition

16 years agor10936: Commit work in progress: wb_pam_auth_crap made async. This does not work...
Volker Lendecke [Wed, 12 Oct 2005 20:22:45 +0000 (20:22 +0000)]
r10936: Commit work in progress: wb_pam_auth_crap made async. This does not work yet,
but the version before did not either, so we're not worse than before.

One thing this does better is to call the domain init code if it's not there
yet.

Volker

16 years agor10934: Fix a gcc 4 warning
Volker Lendecke [Wed, 12 Oct 2005 20:20:20 +0000 (20:20 +0000)]
r10934: Fix a gcc 4 warning

16 years agor10924: we don't need this line twice
Stefan Metzmacher [Wed, 12 Oct 2005 14:58:14 +0000 (14:58 +0000)]
r10924: we don't need this line twice

metze

16 years agor10920: in case of a accept() failure just failing and trying again is no
Andrew Tridgell [Wed, 12 Oct 2005 11:04:01 +0000 (11:04 +0000)]
r10920: in case of a accept() failure just failing and trying again is no
good, as it is probably a resource constraint, so if we just try again
we will spin (as the incoming socket will still be readable). Using a
sleep(1) solves this by throtting smbd until the resource constraint
goes away.

if the resource constraint doesn't go away, then at least smbd won't
be spinning chewing cpu

16 years agor10919: fixed the ldb test for the new operational module
Andrew Tridgell [Wed, 12 Oct 2005 08:53:42 +0000 (08:53 +0000)]
r10919: fixed the ldb test for the new operational module

16 years agor10918: - fixed standalone ldb build
Andrew Tridgell [Wed, 12 Oct 2005 08:51:12 +0000 (08:51 +0000)]
r10918: - fixed standalone ldb build

- added note about allowedAttributesEffective (will be needed for mmc)

- fixed some more ldb warnings

16 years agor10917: copy the element name in a ldb_msg_rename_attr() and ldb_msg_copy_attr()...
Andrew Tridgell [Wed, 12 Oct 2005 08:11:45 +0000 (08:11 +0000)]
r10917: copy the element name in a ldb_msg_rename_attr() and ldb_msg_copy_attr() to ensure
that callers (like the ldap server) can talloc_steal the name

16 years agor10916: - finished the 'operational' ldb module
Andrew Tridgell [Wed, 12 Oct 2005 07:57:39 +0000 (07:57 +0000)]
r10916: - finished the 'operational' ldb module

- removed the timestamps module, replacing it with the operational module

- added a ldb_msg_copy_shallow() function which should be used when a module
  wants to add new elements to a message on add/modify. This is needed
  because the caller might be using a constant structure, or may want to
  re-use the structure again

- enabled the UTC time attribute syntaxes in the operational module

16 years agor10915: added a standard attribute handler for a ldap UTC time string
Andrew Tridgell [Wed, 12 Oct 2005 07:54:15 +0000 (07:54 +0000)]
r10915: added a standard attribute handler for a ldap UTC time string

16 years agor10914: moved the ldap time string functions into ldb so they can be used by
Andrew Tridgell [Wed, 12 Oct 2005 06:30:47 +0000 (06:30 +0000)]
r10914: moved the ldap time string functions into ldb so they can be used by
the time attribute handling functions

16 years agor10913: This patch isn't as big as it looks ...
Andrew Tridgell [Wed, 12 Oct 2005 06:10:23 +0000 (06:10 +0000)]
r10913: This patch isn't as big as it looks ...

most of the changes are fixes to make all the ldb code compile without
warnings on gcc4. Unfortunately That required a lot of casts :-(

I have also added the start of an 'operational' module, which will
replace the timestamp module, plus add support for some other
operational attributes

In ldb_msg_*() I added some new utility functions to make the
operational module sane, and remove the 'ldb' argument from the
ldb_msg_add_*() functions. That argument was only needed back in the
early days of ldb when we didn't use the hierarchical talloc and thus
needed a place to get the allocation function from. Now its just a
pain to pass around everywhere.

Also added a ldb_debug_set() function that calls ldb_debug() plus sets
the result using ldb_set_errstring(). That saves on some awkward
coding in a few places.

16 years agor10912: added a test for supporting batch oplock upgrades
Andrew Tridgell [Wed, 12 Oct 2005 06:03:28 +0000 (06:03 +0000)]
r10912: added a test for supporting batch oplock upgrades

16 years agor10897: added in a hackish ldb proxy module that I am using to experiment with
Andrew Tridgell [Tue, 11 Oct 2005 12:31:31 +0000 (12:31 +0000)]
r10897: added in a hackish ldb proxy module that I am using to experiment with
mmc management support

16 years agor10896: added a strcasestr() replacement function
Andrew Tridgell [Tue, 11 Oct 2005 12:30:34 +0000 (12:30 +0000)]
r10896: added a strcasestr() replacement function

16 years agor10895: allow 'dn=string' searches to work again. Windows doesn't allow these,
Andrew Tridgell [Tue, 11 Oct 2005 12:25:55 +0000 (12:25 +0000)]
r10895: allow 'dn=string' searches to work again. Windows doesn't allow these,
but they are so very useful for things like dn=@MODULES that I think
its worth supporting them

16 years agor10894: make the handling of dn/distinguishedName much closer to real
Andrew Tridgell [Tue, 11 Oct 2005 11:00:16 +0000 (11:00 +0000)]
r10894: make the handling of dn/distinguishedName much closer to real
ldap. Also ensure we put a objectclass on our private ldb's, so they
have some chance of being stored in ldap if you want to

16 years agor10893: add configure test for utime (needed for the previous utime patch)
Andrew Tridgell [Tue, 11 Oct 2005 10:53:28 +0000 (10:53 +0000)]
r10893: add configure test for utime (needed for the previous utime patch)

16 years agor10892: - improved the handling of the special distinguishedName attribute
Andrew Tridgell [Tue, 11 Oct 2005 06:21:07 +0000 (06:21 +0000)]
r10892: - improved the handling of the special distinguishedName attribute

- ensure we don't add attributes twice, should a user ask for the
  attribute twice. Do this in such a way that we don't become O(n^2)

- removed some unused code

16 years agor10891: I noticed that the secrets.db was not being backed up on my system due
Andrew Tridgell [Tue, 11 Oct 2005 05:01:52 +0000 (05:01 +0000)]
r10891: I noticed that the secrets.db was not being backed up on my system due
to msync/mmap not changing the mtime of the file. This patch ensures
that for successfully completed transactions we update the mtime.

I don't do this on all tdb writes as its too expensive, but doing it
just on transactions is bearable, as those cost quite a lot anyway.

16 years agor10889: make searches for dn's less of a special case, and much faster when
Andrew Tridgell [Tue, 11 Oct 2005 04:34:15 +0000 (04:34 +0000)]
r10889: make searches for dn's less of a special case, and much faster when
part of more complex expressions

16 years agor10880: Missed terminating ';', sorry.
Jeremy Allison [Mon, 10 Oct 2005 20:05:29 +0000 (20:05 +0000)]
r10880: Missed terminating ';', sorry.
Jeremy.

16 years agor10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Jeremy Allison [Mon, 10 Oct 2005 20:03:34 +0000 (20:03 +0000)]
r10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Samba3 code. Jelmer please check !
Jeremy.

16 years agor10878: Reply to some comments by tridge and metze:
Volker Lendecke [Mon, 10 Oct 2005 19:57:55 +0000 (19:57 +0000)]
r10878: Reply to some comments by tridge and metze:

* rename the composite helper functions from comp_* to composite_*

* Move the lsa initialization to wb_connect_lsa.c

* Equip smb_composite_connect with a fallback_to_anonymous

The latter two simplify wb_init_domain.c quite a bit.

Volker

16 years agor10873: check the complete payload header
Stefan Metzmacher [Mon, 10 Oct 2005 14:10:37 +0000 (14:10 +0000)]
r10873: check the complete payload header

metze

16 years agor10872: fix the length of the dummy XPRESS decompressed buffer
Stefan Metzmacher [Mon, 10 Oct 2005 13:25:11 +0000 (13:25 +0000)]
r10872: fix the length of the dummy XPRESS decompressed buffer

metze