19 years agoIncrese the maximum non-unix-account ID (becouse the Compaq Test Drive systems
Andrew Bartlett [Sat, 6 Jul 2002 04:12:40 +0000 (04:12 +0000)]
Increse the maximum non-unix-account ID (becouse the Compaq Test Drive systems
have a lot of users ;-).

Andrew Bartlett
(This used to be commit 2f164e28c349b8e20700e0e2fca204ed08228316)

19 years agoRemove C++ comments.
Tim Potter [Fri, 5 Jul 2002 04:08:32 +0000 (04:08 +0000)]
Remove C++ comments.
(This used to be commit 180374c4440765f3d08e5690967beb387ae3b54d)

19 years agoFix debug comment.
Andrew Bartlett [Fri, 5 Jul 2002 01:51:49 +0000 (01:51 +0000)]
Fix debug comment.
(This used to be commit f32980c807adf8287436be0d5a223b9b1ce399b8)

19 years agoFix from Andrew Esh for coredump...
Jeremy Allison [Thu, 4 Jul 2002 21:32:08 +0000 (21:32 +0000)]
Fix from Andrew Esh for coredump...
(This used to be commit aad40894404d000b925024e2f63977f87ecb5a6b)

19 years agofixed the geyed out registry keys. Stupid typo on my part.
Gerald Carter [Thu, 4 Jul 2002 13:18:56 +0000 (13:18 +0000)]
fixed the geyed out registry keys.  Stupid typo on my part.
Now on to plug in the printing tdbs to the registry view....

(This used to be commit 2a68e4529ad884e8c3800f9006bb1c2b18cfada4)

19 years agoMore code from "Kai Krueger" <>, this time starting to make
Andrew Bartlett [Thu, 4 Jul 2002 13:11:54 +0000 (13:11 +0000)]
More code from "Kai Krueger" <>, this time starting to make
the 'user cannot change password' button work.  Needs help from a future SAM
backend, but at least this parses the data, and returns an error.

Andrew Bartlett
(This used to be commit 0c4afe075aa018ec2be10f36fd3f0a5af2a032f1)

19 years ago* fix seg fault caused by missing DLIST_REMOVE in free_fn()
Gerald Carter [Thu, 4 Jul 2002 12:51:26 +0000 (12:51 +0000)]
* fix seg fault caused by missing DLIST_REMOVE in free_fn()

* fixed constant vaolued returned by REG_UNKNOWN_1A
(This used to be commit 3b934e6a8550a03028eed9fe65c28401f429d591)

19 years agoPatch to add security descriptors to the SAMR pipe.
Andrew Bartlett [Thu, 4 Jul 2002 08:45:45 +0000 (08:45 +0000)]
Patch to add security descriptors to the SAMR pipe.

This is not the final solution, I think this will probably changed with the
move to the new SAM subsystem, but it allows some research and gives us
somthing to start with.

It should also help with getting proper NT_TOKEN passing set-up.

Original patch by "Kai Krueger" <>, which I have modified to
pass back NTSTATUS returns in more places and to use a little more common code.

Andrew Bartlett
(This used to be commit 43b72493708e74e089989db42a003a3862c793e6)

19 years agoAlways free_conn() after all the DEBUG()s etc.
Andrew Bartlett [Thu, 4 Jul 2002 08:39:06 +0000 (08:39 +0000)]
Always free_conn() after all the DEBUG()s etc.
(This used to be commit 06529c0433bf75790aad27dd3cecf7005612c694)

19 years agoFixed incorrect debug.
Tim Potter [Thu, 4 Jul 2002 03:32:36 +0000 (03:32 +0000)]
Fixed incorrect debug.
(This used to be commit dd46ff7619129782963ec6ea727e5d731370ee7d)

19 years agofirst cut at implementing support for browsing printer and driver driver
Gerald Carter [Wed, 3 Jul 2002 19:15:26 +0000 (19:15 +0000)]
first cut at implementing support for browsing printer and driver driver
via regedt32.exe.  The regsitry.tdb is only a framework.  It is not
intended to store values, only key/subkey structure.  The data
will be retrieved from nt*tdb (for printers) creating a virtual view
of the data.

You can currently connect to a Samba box using regedt32.exe (haven't
tried regedit.exe).  Some basic keys are created in registry.tdb
for use.

There are two problems....

  * something is getting freed in the winreg code that causes heap
    corruption later on.  As long as you don't play with the winreg
    server functionality, I don't think you'll be bitten by this.

  * no access controls are currently implemented

  * I can't browse HKLM because regedt32 greys out the SYSTEM subkey.

ok so that was three....
(This used to be commit 542d3c93a998083c07b2afa91a7c927c376caf54)

19 years agoBreak up the passdb objects (to allow RPC clients to link without brining in
Andrew Bartlett [Wed, 3 Jul 2002 07:37:54 +0000 (07:37 +0000)]
Break up the passdb objects (to allow RPC clients to link without brining in
*.o) and implment new enum_dom_users code in the SAMR RPC subsystem.

Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the
eventual hope that we might one day support muliple domains off a single
passdb.  To extract the RID, we use sid_peek_check_rid(), and supply an
'expected' domain SID.

The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to
srv_samr_util.c, to ease linking in passdb users.

Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in

Andrew Bartlett
(This used to be commit 5a2a6f1ba316489d118a8bdd9551b155226de94f)

19 years agoMake these functions static. These are not mentioned in the external header,
Andrew Bartlett [Wed, 3 Jul 2002 07:22:45 +0000 (07:22 +0000)]
Make these functions static.  These are not mentioned in the external header,
and appear to be functions for internal use.

Richard:  please check.

Andrew Bartlett
(This used to be commit cb61e61a113dede4a0b0f5d31d0ec89c4b6ecd65)

19 years agoAdd my copyright (which I should have added months ago...)
Andrew Bartlett [Wed, 3 Jul 2002 07:21:07 +0000 (07:21 +0000)]
Add my copyright (which I should have added months ago...)
(This used to be commit 2d7eccbeb258b4fdd14323a40f9537eb265f73e1)

19 years agoFix the spelling in the LDAP attributes
Andrew Bartlett [Wed, 3 Jul 2002 06:55:31 +0000 (06:55 +0000)]
Fix the spelling in the LDAP attributes
(This used to be commit dab26f8891a77640ce382ce1785ca5dd22d43c22)

19 years agoFix the forword prototype to be a static for this static function.
Andrew Bartlett [Wed, 3 Jul 2002 06:48:52 +0000 (06:48 +0000)]
Fix the forword prototype to be a static for this static function.
(This used to be commit bb1aa5e1d2e4f71dfaab0ade24ed15d1b5fdfc33)

19 years agoRemove invalid comment - these are all 'unix' strings now.
Andrew Bartlett [Wed, 3 Jul 2002 00:47:39 +0000 (00:47 +0000)]
Remove invalid comment - these are all 'unix' strings now.
(This used to be commit 537d33735d65c40490aab2210c1d331d940bf4f8)

19 years agoKill off codepage related stuff, now we don't use codepages any more.
Andrew Bartlett [Wed, 3 Jul 2002 00:44:39 +0000 (00:44 +0000)]
Kill off codepage related stuff, now we don't use codepages any more.

Andrew Bartlett
(This used to be commit d1ca2b9f23ce701eb6b6becafb1acd813fc8fc3a)

19 years agofix typo in unix extensions description
Gerald Carter [Tue, 2 Jul 2002 14:17:42 +0000 (14:17 +0000)]
fix typo in unix extensions description
(This used to be commit 0e10ba465daada29cf57337fbb929c480bbce488)

19 years agoAddress the string_sub problem by changing len = 0 to mean "no expand".
Jeremy Allison [Tue, 2 Jul 2002 06:34:27 +0000 (06:34 +0000)]
Address the string_sub problem by changing len = 0 to mean "no expand".
Went through and checked all string_subs I could to ensure they're being
used correctly.
(This used to be commit 17cae0d683be404be69554cd0e84117bdcc56c87)

19 years agofixed our winreg parsing to handle a diifferent form given to us by
Andrew Tridgell [Tue, 2 Jul 2002 04:22:59 +0000 (04:22 +0000)]
fixed our winreg parsing to handle a diifferent form given to us by
WinXP. This fixes setting security decsriptors from XP Professional.
(This used to be commit 80c3c68de20a686ced38356fd68f80a53e6f1626)

19 years agoMerge of constant renames from APPLIANCE_HEAD.
Tim Potter [Tue, 2 Jul 2002 04:07:32 +0000 (04:07 +0000)]
Merge of constant renames from APPLIANCE_HEAD.
(This used to be commit daf4c6a013ffa474d768055e73a1cb31ee941e80)

19 years agofixed a prototype problem in client.c
Andrew Tridgell [Tue, 2 Jul 2002 01:35:07 +0000 (01:35 +0000)]
fixed a prototype problem in client.c
(This used to be commit 922ab73c3c8f510fdbcb8b64d54b512d32c47b75)

19 years agoused to make some variables static and remove some dead
Andrew Tridgell [Mon, 1 Jul 2002 09:12:41 +0000 (09:12 +0000)]
used to make some variables static and remove some dead
(This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)

19 years agoads_mod_ber should be static, not public
Andrew Tridgell [Mon, 1 Jul 2002 07:30:40 +0000 (07:30 +0000)]
ads_mod_ber should be static, not public
this fixes the huge number of struct berval warnings on non-ads
(This used to be commit e7f588d8156856109623b5f5a3841c5d096b1185)

19 years agofixed multi-homed re-registration of names when we are a WINS
Andrew Tridgell [Mon, 1 Jul 2002 07:19:12 +0000 (07:19 +0000)]
fixed multi-homed re-registration of names when we are a WINS
server. We were rejecting them, leaving the name unregistered!
(This used to be commit 2dc539ed33f9893cbe9e16c386994933121b71e9)

19 years agodon't start the async dns process unless we actually need it!
Andrew Tridgell [Mon, 1 Jul 2002 07:15:13 +0000 (07:15 +0000)]
don't start the async dns process unless we actually need it!
(ie. check for lp_dns_proxy())
(This used to be commit 84d3b09b8542518a4684d07e975bcc9eaa1f6b69)

19 years agobias the lookup sorting towards directly reachable IPs
Andrew Tridgell [Mon, 1 Jul 2002 05:39:32 +0000 (05:39 +0000)]
bias the lookup sorting towards directly reachable IPs
(This used to be commit 514b91827a970a0041314af341b8c66a01668e4a)

19 years agosort name query responses by how far they are from our interface
Andrew Tridgell [Mon, 1 Jul 2002 05:09:29 +0000 (05:09 +0000)]
sort name query responses by how far they are from our interface
broadcast addresses. This makes it far more likely that we will try to
talk to an interface that is routable from one of our interfaces.
(This used to be commit bc1a0506868266088ae585a7a5dcb1ac8ca3474d)

19 years agofixed a bug handling startup when the ads server is not contactable
Andrew Tridgell [Mon, 1 Jul 2002 04:47:29 +0000 (04:47 +0000)]
fixed a bug handling startup when the ads server is not contactable
(This used to be commit dbfd4e5101599bcb85600e4c5c93ce5390b9aa91)

19 years agoThe 17-bit length field in the header contains the number of
Christopher R. Hertel [Mon, 1 Jul 2002 03:42:04 +0000 (03:42 +0000)]
The 17-bit length field in the header contains the number of
bytes which follow the header, not the full packet size.

    [Yes, the length field is either 17-bits, or (per the RFCs) it is a
    16-bit length field preceeded by an 8-bit flags field of which only
    the low-order bit may be used.  If that bit is set, then add 65536 to
    the 16-bit length field.  (In other words, it's a 17-bit unsigned
    length field.)
    ...unless, of course, the transport is native TCP [port 445] in which
    case the length field *might* be 24-bits wide.]

Anyway, the change is a very minor one.  We were including the four bytes
of the header in the length count and, as a result, sending four bytes of
garbage at the end of the SESSION REQUEST packet.

Small fix in function cli_session_request().
(This used to be commit cd2b1357066a712efcf87ac61922ef871118e8de)

19 years agofixed a makefile syntax error that was breaking the build on some
Andrew Tridgell [Sun, 30 Jun 2002 03:47:46 +0000 (03:47 +0000)]
fixed a makefile syntax error that was breaking the build on some
(This used to be commit 4eda1801493a79a27ad49e141e6adf8c8d4db85b)

19 years agoShut down printing tdb correctly - this will be more important when I go
Jeremy Allison [Fri, 28 Jun 2002 23:11:31 +0000 (23:11 +0000)]
Shut down printing tdb correctly - this will be more important when I go
to a tdb per-queue for scalability.
(This used to be commit e808eb2758ff4ad1eed7b50a02865b87ba0c068e)

19 years agoAdded limit on SPOOLSS pipes from 2.2.x
Jeremy Allison [Fri, 28 Jun 2002 19:41:17 +0000 (19:41 +0000)]
Added limit on SPOOLSS pipes from 2.2.x
(This used to be commit b35fc30c37fa894acea3fcb7b48ee9841d1bd5e8)

19 years agoTest how many pipes we can open.
Jeremy Allison [Fri, 28 Jun 2002 19:28:58 +0000 (19:28 +0000)]
Test how many pipes we can open.
(This used to be commit 95d22f18d7a2bb06804a6a336b243face4b496a1)

19 years agoConst cleanup...should only be 2 warnings left from calling lib/util_str.c
Jim McDonough [Fri, 28 Jun 2002 19:25:11 +0000 (19:25 +0000)]
Const cleanup...should only be 2 warnings left from calling lib/util_str.c
str_list_copy().  Perhaps its proto should be fixed.
(This used to be commit b81bc2b34b620c24a148435d9913bd1a1528c983)

19 years agoSTRING was being redefined...
Jeremy Allison [Fri, 28 Jun 2002 18:17:11 +0000 (18:17 +0000)]
STRING was being redefined...
(This used to be commit f631f7e0fc7ff655d56ad17606134784f401f171)

19 years agodon't backup to a newer file
Andrew Tridgell [Fri, 28 Jun 2002 03:52:22 +0000 (03:52 +0000)]
don't backup to a newer file
(This used to be commit ae2f8aa9d0678aa0014d96fc8b1b52f42cba8349)

19 years agomake net join a bit less verbose
Andrew Tridgell [Fri, 28 Jun 2002 03:51:31 +0000 (03:51 +0000)]
make net join a bit less verbose
these errors happen all the time, so they shouldn't be level 0
(This used to be commit abc2aed26c6cb12a86987a3846ca5c9f7df9a5ae)

19 years agodon't warn on non-existant files in map_file(), let the caller handle any warning
Andrew Tridgell [Fri, 28 Jun 2002 03:19:20 +0000 (03:19 +0000)]
don't warn on non-existant files in map_file(), let the caller handle any warning
(This used to be commit 98a119ee58286b708a54dcba9ffcfbdcf8cb6bba)

19 years agodon't warn on the loading of zero length files. This fixes the
Andrew Tridgell [Fri, 28 Jun 2002 02:54:40 +0000 (02:54 +0000)]
don't warn on the loading of zero length files. This fixes the
'valid.dat' warning
(This used to be commit 57101ef770e34ef9fd2ddcb5d9c9e9ad050e5e3d)

19 years agoProper merge of all the working printing stuff from APPLIANCE_HEAD.
Jeremy Allison [Fri, 28 Jun 2002 00:17:15 +0000 (00:17 +0000)]
Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
(This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)

19 years agoIt's fairly obvious that no one has tried to upload a driver
Gerald Carter [Thu, 27 Jun 2002 18:10:56 +0000 (18:10 +0000)]
It's fairly obvious that no one has tried to upload a driver
to a Samba print server running HEAD in a while.  This has been broken
since tridge's changes to make_connection() to not do the chdir()
to the connect_path.  Sorry it took me so long to get around to fixing it.

The problem occured with our internal use of make_connection().

(This used to be commit b5bc8aa0f68ceebfb5c0ec15ff93b0172cec36d8)

19 years agofixed a link problem with global_in_nmbd
Andrew Tridgell [Thu, 27 Jun 2002 14:54:01 +0000 (14:54 +0000)]
fixed a link problem with global_in_nmbd
(This used to be commit 9a3e323ec261a1ee3a83f8c558583c3d4a53e06a)

19 years agoThe next phase in the WINS rewrite!
Andrew Tridgell [Thu, 27 Jun 2002 14:37:17 +0000 (14:37 +0000)]
The next phase in the WINS rewrite!

We now cope wiith multiple WINS groups and multiple failover servers
for release and refresh as well as registration. We also do the regitrations
in the same fashion as W2K does, where we don't try to register the next
IP in the list for a name until the WINS server has acked the previos IP.
This prevents us flooding the WINS server and also seems to make for much
more reliable multi-homed registration.

I also changed the dead WINS server code to mark pairs of IPs dead,
not individual IPs. The idea is that a WINS server might be dead from
the point of view of one of our interfaces, but not another, so we
need to keep talking to it on one while moving onto a failover WINS
server on the other interface. This copes much better with partial
LAN outages and weird routing tables.
(This used to be commit 313f2c9ff7a513802e4f893324865e70912d419e)

19 years agoJelmer has been keeping on top of the typos.
Andrew Bartlett [Thu, 27 Jun 2002 14:23:48 +0000 (14:23 +0000)]
Jelmer has been keeping on top of the typos.
(This used to be commit 1e36b7e9620f616590dd9f4f44384272b62605ff)

19 years agoWe don't use SSL any more...
Andrew Bartlett [Thu, 27 Jun 2002 14:12:30 +0000 (14:12 +0000)]
We don't use SSL any more...

(from jelmer)

Andrew Bartlett
(This used to be commit f766fc47d405cd2862ab542d851cf0cbf07ed367)

19 years agoa null grp_sid should have a 0 offset. Also removed a few more unnecessary
Gerald Carter [Thu, 27 Jun 2002 01:12:37 +0000 (01:12 +0000)]
a null grp_sid should have a 0 offset.  Also removed a few more unnecessary
prs_align() for sec_desc.
(This used to be commit fc3770f281f6344a0589bfe614cd3e559b7259dd)

19 years agoUsing 1 for a tdb hash size makes for slow inserts....
Jeremy Allison [Thu, 27 Jun 2002 00:13:20 +0000 (00:13 +0000)]
Using 1 for a tdb hash size makes for slow inserts....
(This used to be commit d015c08100bf467e3f83143586a234989eca1a49)

19 years agoRe-enable kernel change notification on s390 as it has been fixed in the
Jim McDonough [Wed, 26 Jun 2002 23:45:59 +0000 (23:45 +0000)]
Re-enable kernel change notification on s390 as it has been fixed in the
(This used to be commit ce7aa715ba2b704bfba49f128196c6a3421fd73b)

19 years agomore merges from SAMBA_2_2
Gerald Carter [Wed, 26 Jun 2002 23:26:10 +0000 (23:26 +0000)]
more merges from SAMBA_2_2
(This used to be commit fea895c5c41d51e6b06f0bcf8e0c95b29df89e76)

19 years agomerge from APP_HEAD
Gerald Carter [Wed, 26 Jun 2002 19:08:32 +0000 (19:08 +0000)]
merge from APP_HEAD
(This used to be commit d8cf54399d89b4023102ed8326d35147d91e4168)

19 years agoTypo...
Jeremy Allison [Wed, 26 Jun 2002 17:37:53 +0000 (17:37 +0000)]
(This used to be commit 4ed134426dbf85a4f4e2f7fcef91cd8e8bf31519)

19 years agoAdded prs_align_uint16 for SD aligns.
Jeremy Allison [Wed, 26 Jun 2002 17:36:58 +0000 (17:36 +0000)]
Added prs_align_uint16 for SD aligns.
(This used to be commit 374182a9ba4988cad407e6e6c45057069a3c5793)

19 years agoReduce compiler warnings.
Jim McDonough [Wed, 26 Jun 2002 17:27:30 +0000 (17:27 +0000)]
Reduce compiler warnings.
(This used to be commit b361089360068b91e9f4d221abdc3c8351596a7f)

19 years agoresolve_wins() now needs to be a public function
Andrew Tridgell [Wed, 26 Jun 2002 12:49:59 +0000 (12:49 +0000)]
resolve_wins() now needs to be a public function
(This used to be commit 0bce9af615db2eb7e95887ab6b95655d7771dac2)

19 years agoThis commit finally gives us multiple wins server groups. We now
Andrew Tridgell [Wed, 26 Jun 2002 12:17:11 +0000 (12:17 +0000)]
This commit finally gives us multiple wins server groups. We now
accept an extended syntax for 'wins server' like this:

  wins server = group1: group2: group1:

The tags before the IPs don't mean anything, they are just a way of
grouping IPs together. If you use the old syntax (ie. no ':') then
an implicit group name of '*' is used. In general I'd recommend people
use interface names for the group names, but it doesn't matter much.

When we register in nmbd we try to register all our IPs with each group
of WINS servers. We keep trying until all of them are registered with
every group, falling back to the failover WINS servers for each group
as we go.

When we do a WINS lookup we try each of the WINS servers for each group.
If a WINS server for a group gives a negative answer then we give up
on that group and move to the next group. If it times out then
we move to the next failover wins server in the group.

In either case, if a WINS server doesn't respond then we mark it dead
for 10 minutes, to prevent lengthy waits for dead servers.
(This used to be commit e125f06058b6b51382cf046b1dbb30728b8aeda5)

19 years agowe never pass any userdata when doing name registrations on the
Andrew Tridgell [Wed, 26 Jun 2002 08:58:03 +0000 (08:58 +0000)]
we never pass any userdata when doing name registrations on the
unicast subnet, so remove that parameter. That frees up userdata so I
can start using it to indicate which wins server tag we are
registering (more about wins 'tags' later ...)
(This used to be commit 1324f0c185bb8cdb95fd497457223aff5e687bd6)

19 years agoremoved the wins name registration code from libsmbclient
Andrew Tridgell [Wed, 26 Jun 2002 08:09:28 +0000 (08:09 +0000)]
removed the wins name registration code from libsmbclient

it is *completely* bogus for our client code to be doing wins
registrations. Not only is it slow as hell (think about when a wins
server is down) but how the heck is going to answer the queries that
will later come in for our name? And what happens when libsmbclient
sends registrations and nmbd then gets the WACK response from the wins
server? we end up losing our name!

Name registration is a job for nmbd, not for clients.
(This used to be commit 62774923ffdce15eded0f37ba99e33e9cd7a358c)

19 years agomade the wins list handling a littler clearer
Andrew Tridgell [Wed, 26 Jun 2002 07:27:00 +0000 (07:27 +0000)]
made the wins list handling a littler clearer
(This used to be commit d03efabc4dca842cafcd0edfa1eaa5b4d3e821b6)

19 years agomumble ... fix typo ... mumble
Andrew Tridgell [Wed, 26 Jun 2002 07:23:35 +0000 (07:23 +0000)]
mumble ... fix typo ... mumble
(This used to be commit 68be27cfea938d7f91a8ce1da39eb86c577f7719)

19 years agofixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
Andrew Tridgell [Wed, 26 Jun 2002 07:23:00 +0000 (07:23 +0000)]
fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
cache the result!)
(This used to be commit fc8aa198b16da24b68e45982eb45dd7d5fd089e1)

19 years ago- completely rewrote the wins_srv.c code. It is now much simpler, and
Andrew Tridgell [Wed, 26 Jun 2002 06:44:37 +0000 (06:44 +0000)]
- completely rewrote the wins_srv.c code. It is now much simpler, and
gives us a good grounding to properly support multiple wins servers
for different interfaces (which will be coming soon ...)

- fixed our wins registration failover code to actually do failover!
We were not trying to register with a secondary wins server at all
when the primary was down. We now fallback correctly.

- fixed the multi-homed name registration packets so that they work
even in a non-connected network (ie. when one of our interfaces is not
routable from the wins server. Yes, this really happens in the real
(This used to be commit a049360d5b0d95a935b06aad43efc17d34de46dc)

19 years agofixed 3 bugs in jeremys trans2 merge. Hopefully it now works.
Andrew Tridgell [Wed, 26 Jun 2002 06:39:54 +0000 (06:39 +0000)]
fixed 3 bugs in jeremys trans2 merge. Hopefully it now works.
(This used to be commit 4a7813711130625598e0ffe92e7938890b818d2f)

19 years agoreverted some bogus test code that jeremy accidentally committed
Andrew Tridgell [Wed, 26 Jun 2002 06:39:18 +0000 (06:39 +0000)]
reverted some bogus test code that jeremy accidentally committed
(This used to be commit 6b28ca8bd2a6613989bb23be951836d173296197)

19 years agoAnother bug fix from metze.
Andrew Bartlett [Wed, 26 Jun 2002 03:54:54 +0000 (03:54 +0000)]
Another bug fix from metze.
(This used to be commit 5c754cef19c9580e2cb1e23152a1097d11ca8c60)

19 years agoQualify some of the hexidecimal responses with 0x
Andrew Bartlett [Wed, 26 Jun 2002 02:52:51 +0000 (02:52 +0000)]
Qualify some of the hexidecimal responses with 0x
(This used to be commit e77e21cdbe2cb2d594494dd6e5cac37b5b1bcab8)

19 years agoAnd fix another missing ubiqx...
Andrew Bartlett [Tue, 25 Jun 2002 13:18:09 +0000 (13:18 +0000)]
And fix another missing ubiqx...

(Didn't have smbmnt compiled in originally, so it missed my tests)
(This used to be commit 184be390a842221470cdc20f05eb3dc14de5b534)

19 years agoFix the smbmnt compile.
Andrew Bartlett [Tue, 25 Jun 2002 11:38:26 +0000 (11:38 +0000)]
Fix the smbmnt compile.
(This used to be commit 987633021f13d2c3571fbe2c1f9ff86a14c046e6)

19 years agoI'm going to try and check this against Win2k shortly, but I'm certain that
Andrew Bartlett [Tue, 25 Jun 2002 11:21:41 +0000 (11:21 +0000)]
I'm going to try and check this against Win2k shortly, but I'm certain that
'NT_STATUS_OK' is not the right answer here.  Try NO_MORE_ENTRIES for now.

Andrew Bartlett
(This used to be commit c98b9a965905f1876b4884f932ff2e0237d85b03)

19 years agoTry to avoid infinite loops when reteriving users - even from broken servers.
Andrew Bartlett [Tue, 25 Jun 2002 11:20:14 +0000 (11:20 +0000)]
Try to avoid infinite loops when reteriving users - even from broken servers.

Andrew Bartlett
(This used to be commit ebc8452a30b2a9bdd6698af8dad489f3f92ae7a6)

19 years agoUpdate cli_full_connection() to take a 'flags' paramater, and try to get a
Andrew Bartlett [Tue, 25 Jun 2002 08:57:24 +0000 (08:57 +0000)]
Update cli_full_connection() to take a 'flags' paramater, and try to get a
few more places to use it.

Andrew Bartlett
(This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)

19 years agoAnd another .cvsignore
Andrew Bartlett [Tue, 25 Jun 2002 08:34:17 +0000 (08:34 +0000)]
And another .cvsignore
(This used to be commit fa0037a294a9faaf3cdc894e2ec1280dad157553)

19 years agoAdd a .cvsignore file
Andrew Bartlett [Tue, 25 Jun 2002 08:32:43 +0000 (08:32 +0000)]
Add a .cvsignore file
(This used to be commit 7f81e423d2fcfd3a97920d1c5f50d9020355428b)

19 years agoKill off unnecessary cast.
Andrew Bartlett [Tue, 25 Jun 2002 07:58:29 +0000 (07:58 +0000)]
Kill off unnecessary cast.
(This used to be commit 658e853bc6914113dcd4f67d7a1d2761372b562d)

19 years agoBreak up samba's object dependencies, and its prototype includes.
Andrew Bartlett [Tue, 25 Jun 2002 02:29:09 +0000 (02:29 +0000)]
Break up samba's object dependencies, and its prototype includes.

Now smbclient, net, and swat use their own proto files - now the global

The change to libads/kerberos.c was to break up the dependency on secrets.c -
we want to be able to write an ADS client that doesn't need local secrets.

I have other breakups in the works - I will remove the dependency of
rpc_parse on passdb (and therefore secrets.c) shortly.

(NOTE:  This patch does *not* break up includes.h, or other such forbidden

Andrew Bartlett
(This used to be commit edb41dad2df0ae3db364dbc3896cc75956262edf)

19 years agoAdd a couple more DEBUG()s to winbindd.
Andrew Bartlett [Tue, 25 Jun 2002 01:40:44 +0000 (01:40 +0000)]
Add a couple more DEBUG()s to winbindd.

Andrew Bartlett
(This used to be commit 3b2464ffdad5e64a05e227b50116cb59f6d34204)

19 years agofixed a bug in handling select in the main daemon - this stops the daemon spinning...
Andrew Tridgell [Tue, 25 Jun 2002 00:59:14 +0000 (00:59 +0000)]
fixed a bug in handling select in the main daemon - this stops the daemon spinning if a signal is received at an inconvenient moment
(This used to be commit d8d7dd523d897ea25a572c8f21903e94e8485404)

19 years agoremoved compiler warning
Gerald Carter [Tue, 25 Jun 2002 00:22:21 +0000 (00:22 +0000)]
removed compiler warning
(This used to be commit 73ba155a6bba150b5bd8385fd609ed7fea30f02f)

19 years agomerge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
Gerald Carter [Tue, 25 Jun 2002 00:10:06 +0000 (00:10 +0000)]
Merge ... SONAMEFLAG stuff from SAMBA_2_2.  If I stepped on something
here because HEAD does it differently, someone let me know.  This looks ok
and compiles fine from what I can tell.
(This used to be commit 68841ae76289369c0b2e9e964bad1746e6e2cc8b)

19 years agomerging some autoconf changes from SAMBA_2_2
Gerald Carter [Mon, 24 Jun 2002 23:18:39 +0000 (23:18 +0000)]
merging some autoconf changes from SAMBA_2_2
(This used to be commit 708c6b8297e720c0d0146e66e3a011feabe01531)

19 years agosync with the sec_desc parsing fix from APP_HEAD. I will probably need
Gerald Carter [Mon, 24 Jun 2002 23:04:41 +0000 (23:04 +0000)]
sync with the sec_desc parsing fix from APP_HEAD.  I will probably need
to revisit this some.
(This used to be commit f471c880db8562231f2d6623124d3e9c31559f4c)

19 years agoreplacing free() with SAFE_FREE() where possible
Gerald Carter [Mon, 24 Jun 2002 21:14:30 +0000 (21:14 +0000)]
replacing free() with SAFE_FREE() where possible
(This used to be commit 5a4a7e5a88f4fdc5891436b05e44b05d1e7ad3f1)

19 years agobacking out changes for now
Gerald Carter [Mon, 24 Jun 2002 20:26:37 +0000 (20:26 +0000)]
backing out changes for now
(This used to be commit e3422addeb2a74ba92e3b5374d1a1efbcc825d5a)

19 years agocompile fix
Gerald Carter [Mon, 24 Jun 2002 20:09:34 +0000 (20:09 +0000)]
compile fix
(This used to be commit b07d6d4cebecd77314b123d83c7c2265eb62e1c1)

19 years agoforgot new error code from 2.2
Gerald Carter [Mon, 24 Jun 2002 20:04:01 +0000 (20:04 +0000)]
forgot new error code from 2.2
(This used to be commit 8b805be8e8d1a5616158d39427ad640de4210de9)

19 years agoprinting merge from SAMBA_2_2. Ther server code looks to be in sync now.
Gerald Carter [Mon, 24 Jun 2002 19:51:23 +0000 (19:51 +0000)]
printing merge from SAMBA_2_2.  Ther server code looks to be in sync now.
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions

  * John driver init changes
  * Tim's printer enumeration bug fix
(This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)

19 years agoSupport utf8 on the wire for ads ldap. DN's are converted, as well as strings,
Jim McDonough [Mon, 24 Jun 2002 17:50:02 +0000 (17:50 +0000)]
Support utf8 on the wire for ads ldap.  DN's are converted, as well as strings,
though it is up to the calling function to decide whether values are
strings or not.  Attributes are not converted at this point, though support
for it would be simple.

I have tested it with users and groups using non-ascii chars, and if the
check for alphanumeric user/domain names is removed form sesssetup.c, even
a user with accented chars can connect, or even login (via winbind).

I have also simplified the interfaces to ads_mod_*, though we will probably
want to expand this by a few functions in the near future.  We just had
too many ways to do the same thing...
(This used to be commit f924cb53580bc081ff34e45abba57629018c68d6)

19 years agoMerged across trans2.c from SAMBA_2_2. UNIX extensions and passthrough
Jeremy Allison [Mon, 24 Jun 2002 07:21:13 +0000 (07:21 +0000)]
Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthrough
now supported in HEAD.
(This used to be commit 082c5c084ef870709d3046f580eef597bb2aeef3)

19 years agomuch better findstatic script
Andrew Tridgell [Mon, 24 Jun 2002 06:27:30 +0000 (06:27 +0000)]
much better findstatic script
(This used to be commit 2947b7624f921032bcd2cc5507747b2f7ef190de)

19 years agoTry to get security=domain at least slightly working.
Andrew Bartlett [Mon, 24 Jun 2002 01:51:11 +0000 (01:51 +0000)]
Try to get security=domain at least slightly working.

The previous code both had basic logic flaws in it, and some subtle
issues regarding the Win2k info3 response.

I've tested this against Samba (it looks like that was missed last time
due to the 'called name' corruption - which broke my testsuite) and
accomidated what I've seen from a info3 printout jmcd gave me.

I'll get this tested fully as soon as I get my VMware going again.

Andrew Bartlett
(This used to be commit 87eba4c811293d2428bfb9bc36de22e66dce7f8b)

19 years agoAdd module versioning to the passdb module system
Andrew Bartlett [Sat, 22 Jun 2002 12:19:35 +0000 (12:19 +0000)]
Add module versioning to the passdb module system

All passdb modules need to include a 'magic' macro that creates simple
'return my version number' function.

(from metze and jelmer)

Also fix up the dir_drive autosubsitute code to correctly use lp_logon_drive().

(from metze)

Andrew Bartlett
(This used to be commit 4a57c445dd4354034fc41b132a484afe6ab66e16)

19 years agoRaise some debug levels.
Andrew Bartlett [Sat, 22 Jun 2002 12:15:42 +0000 (12:15 +0000)]
Raise some debug levels.

Andrew Bartlett
(This used to be commit 5c0e4ecfaf9bf7e6e799dceeb275b5db2d4142dd)

19 years agoDon't use uint. It doesn't exist on some platforms and we don't define it.
Jeremy Allison [Fri, 21 Jun 2002 17:23:20 +0000 (17:23 +0000)]
Don't use uint. It doesn't exist on some platforms and we don't define it.
Replaced with "unsigned int".
(This used to be commit 5841ca54b6a8c36f3d76c12570ff8f2211ed2363)

19 years agoFixed incorrect debug.
Tim Potter [Fri, 21 Jun 2002 03:19:30 +0000 (03:19 +0000)]
Fixed incorrect debug.
(This used to be commit a905b5f49db6a12c9a562e1d5e3981dc3525fd27)

19 years agoFormat tidyup before I start working on scalability fixes (one file per
Jeremy Allison [Fri, 21 Jun 2002 01:19:31 +0000 (01:19 +0000)]
Format tidyup before I start working on scalability fixes (one file per
print queue).
(This used to be commit 6544a500d0696c9fe1f1abc067a8b963a0e2b8da)

19 years agoChanged level of "bind succeded on port %d" debug to 10.
Tim Potter [Fri, 21 Jun 2002 01:12:12 +0000 (01:12 +0000)]
Changed level of "bind succeded on port %d" debug to 10.
(This used to be commit de00428ef12b597e5c29896bf961cfd7a1e122dd)

19 years agoFix from Andrew Esh for not checking return code.
Jeremy Allison [Thu, 20 Jun 2002 19:08:05 +0000 (19:08 +0000)]
Fix from Andrew Esh for not checking return code.
(This used to be commit 629cea2ff4f640cd60d9ecfa72acf2707b3f1ff4)

19 years agoRemove "inline" - shouldn't be in portable code.
Jeremy Allison [Thu, 20 Jun 2002 19:06:12 +0000 (19:06 +0000)]
Remove "inline" - shouldn't be in portable code.
(This used to be commit 4a5aa918d9eecc130a5126a255f8a6b5cde8044f)

19 years agoGot rid of unused flags field in lanman api_commands[].
Tim Potter [Thu, 20 Jun 2002 05:42:00 +0000 (05:42 +0000)]
Got rid of unused flags field in lanman api_commands[].

Added an auth_user field which denotes whether the api call can be made
anonymously.  In combination with lp_restrict_anonymous() this can
decrease the amount of information that can be retrieved anonymously.

So far NetShareEnum, NetSessionEnum, NetGroupEnum, NetGroupGetUsers,
NetUserEnum, PrintQEnum, NetFileEnum cannot be called anonymously.

SamOEMChangePassword and NetServerEnum can be called anonymously.

All other functions can be called anonymously until it can be proven
that they can't to avoid breaking anything.
(This used to be commit ead6ab9602640aca5d1d8ac336f3a129f9466159)