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

7054 Commits

Author SHA1 Message Date
Jelmer Vernooij
8d036f304e r11099: Replace unistr with [string] equivalent
(This used to be commit 6a8291c80e)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
a0f6e35c1f r11098: Replace string with [string]
(This used to be commit 1ac8c96349)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
c008f951cf r11097: Allow pointers in "const"
(This used to be commit 88fcd56fb5)
2007-10-10 13:44:48 -05:00
Jelmer Vernooij
68d82998d2 r11096: Eliminate pointer_default_top()
(This used to be commit b773d848e8)
2007-10-10 13:44:48 -05:00
Volker Lendecke
d68319431e r11095: Implement wb_getuserdomgroups.
Tridge, if you have the time, you might want to look at a problem I'm having
with unix domain stream sockets. From a comment in this commit:

	/* Using composite_trigger_error here causes problems with the client
	 * socket. Linux 2.6.8 gives me a ECONNRESET on the next read after
	 * writing the reply when I don't wait the 100 milliseconds. */

This is in winbind/wb_cmd_userdomgroups.c:93.

The problem I have is that I can not *immediately* send an error reply to the
client because the next receive fails. Waiting 100 milliseconds helps. It
might also be a problem with epoll(), I don't really know.

I'd appreciate if you took a brief look at this, maybe I'm doing something
wrong.

Thanks,

Volker
(This used to be commit 3e535cce74)
2007-10-10 13:44:48 -05:00
Volker Lendecke
17355fbbd4 r11094: Connect to SAM, implement getdcname
(This used to be commit a14398715e)
2007-10-10 13:44:48 -05:00
Volker Lendecke
42ececdfae r11093: Implement wb_queue_domain_send: If the domain is not yet initialized, do that
first. And if a request is being processed, queue it. This correctly survived
3 endless loops with wbinfo's doing different things while starting up smbd.

The number of indirections starts to become a bit scary, but what can you do
without a decent programming language that provides closures :-)

One thing that we might consider is to auto-generate async rpc requests that
return composite_context structs instead of rpc_requests. Otherwise I'd have
to write a lot of wrappers like composite_netr_LogonSamLogon_send.

The alternative would be to write two versions of wb_queue_domain_send which I
would like to avoid. This is cluttered enough already.

Volker
(This used to be commit 66c1b674f9)
2007-10-10 13:44:48 -05:00
Stefan Metzmacher
9259f9ecc0 r11092: run NBT-WINSREPLICATION-QUICK test with make test
metze
(This used to be commit 2577c02a51)
2007-10-10 13:44:47 -05:00
Stefan Metzmacher
f8a3335cb4 r11091: add a NBT-WINSREPLICATION-QUICK test that passed the current samba4 server
metze
(This used to be commit 772467c8d4)
2007-10-10 13:44:47 -05:00
Stefan Metzmacher
42ef193dd2 r11090: we need this to run correct under socket_wrapper
metze
(This used to be commit 3f7b09a308)
2007-10-10 13:44:47 -05:00
Stefan Metzmacher
305b2b0c49 r11089: start the winsreplication task when we run with wins support = yes
metze
(This used to be commit d49a1d2b15)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
db5a0adb14 r11088: don't try to set empty strings values as attributes
our ldb doesn't support them, does w2k3 LDAP supports them?

metze
(This used to be commit 97cb22bd9d)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
c3c26c9008 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
(This used to be commit 9f3b6746d8)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
dab2b68583 r11086: add sys.unix2nttime() function
metze
(This used to be commit a3abf10d43)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
a8504e1061 r11085: as ejs doesn't support '&' '|' bitwise AND and OR,
we need some helper functions for this

metze
(This used to be commit e27e36909d)
2007-10-10 13:44:46 -05:00
Stefan Metzmacher
5f6a3213e2 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
(This used to be commit 70cde83c13)
2007-10-10 13:44:45 -05:00
Stefan Metzmacher
a59cca6f97 r11083: use the addresses from the record
metze
(This used to be commit 5d46cdd1ee)
2007-10-10 13:44:45 -05:00
Volker Lendecke
d102d5ab57 r11082: Fix a segfault
(This used to be commit 576a724bf1)
2007-10-10 13:44:45 -05:00
Jeremy Allison
1bdd3a466d r11081: Remember to remove unused variables.
Jeremy.
(This used to be commit bfa41398a6)
2007-10-10 13:44:45 -05:00
Jeremy Allison
877a40d0a4 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.
(This used to be commit 42d93a317a)
2007-10-10 13:44:45 -05:00
Jelmer Vernooij
5a937a0f6f r11077: Fix [string] for Samba3
(This used to be commit 2f76e2a6bf)
2007-10-10 13:44:44 -05:00
Jeremy Allison
5de65d5801 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.
(This used to be commit 77399e1cec)
2007-10-10 13:44:44 -05:00
Volker Lendecke
0aa0c5340f r11070: Fix a cut&paste error, now wbinfo can properly separate domain and user...
Volker
(This used to be commit 6e4f774a49)
2007-10-10 13:44:44 -05:00
Volker Lendecke
207a6bf397 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
(This used to be commit 0c6c71ae3c)
2007-10-10 13:44:44 -05:00
Jelmer Vernooij
8a58b806e9 r11067: Support for [string] in the Ethereal parser generator
(This used to be commit 1d5db487bb)
2007-10-10 13:44:44 -05:00
Jelmer Vernooij
6f3caf73e1 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
(This used to be commit 765adaf19b)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
ebe6f9ea49 r11058: remove useless talloc context
metze
(This used to be commit d9d3fe1b8a)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
152aa5bd33 r11053: fix the logic,
this should fix make test

metze
(This used to be commit c7742a2829)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
cffd522b5c r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
(This used to be commit 471c0ca4ab)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
d1e6c22869 r11051: fix the build,
sorry for the latest spam!

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

metze
(This used to be commit fd5e746d8f)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
94a8893bf4 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
(This used to be commit 6d97dd6e50)
2007-10-10 13:44:42 -05:00
Stefan Metzmacher
d387193913 r11047:
(This used to be commit 177d60f42a)
2007-10-10 13:44:42 -05:00
Stefan Metzmacher
4c6fb8de2f r11045:
(This used to be commit a2c6969306)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
5ec6aa1476 r11044:
(This used to be commit 914e16f567)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
8aebec1be5 r11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
repare for pull replication support

 metze
(This used to be commit a75402c45f)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
f197180d8d 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
(This used to be commit 45a774c63c)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
3d7c2443b8 r11041: r10358@SERNOX: metze | 2005-09-20 21:40:03 +0200
fix some missing nbt_peer_socket cases

 metze
(This used to be commit bd25231c57)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
676b220f3e 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
(This used to be commit 82bad3f3ef)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
8755cd4a9c 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
(This used to be commit c2b2b58220)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
b3d0ac41db r11038: r10351@SERNOX: metze | 2005-09-20 16:11:17 +0200
fix namebuf_len, when type is 0x00

 metze
(This used to be commit 1b2effa01b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
2ecb46d595 r11037:
(This used to be commit 6913e33840)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
2f54bab951 r11036: r10349@SERNOX: metze | 2005-09-20 15:38:31 +0200
we know answer send_requests correctly

 metze
(This used to be commit aecc9ca1cc)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
681ba379e4 r11035: r10347@SERNOX: metze | 2005-09-20 13:40:24 +0200
make wreplsrv_find_owner public

 metze
(This used to be commit 6fa37c0a2b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
e148b33f4b 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
(This used to be commit b8b48c8aa5)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
8bb5bcb674 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
(This used to be commit a25279f052)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
e5c518bebd 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
(This used to be commit 4490a2864e)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
56e4a9dd2b r11030: r10338@SERNOX: metze | 2005-09-20 09:20:49 +0200
fix uninitialized variable

 metze
(This used to be commit e6fb40e51d)
2007-10-10 13:42:31 -05:00
Stefan Metzmacher
a76ffb574c r11029:
(This used to be commit 49e61d011c)
2007-10-10 13:42:31 -05:00
Stefan Metzmacher
6f0f39cab1 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
(This used to be commit 752025a0e1)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
4c297bac9d 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
(This used to be commit 72eba90465)
2007-10-10 13:42:16 -05:00