Andrew Tridgell [Fri, 12 Apr 2002 03:42:44 +0000 (03:42 +0000)]
better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name
Jeremy Allison [Thu, 11 Apr 2002 18:52:09 +0000 (18:52 +0000)]
HP2500C driver writes devmode with private data that ends
on a 2 byte boundary. We then miss-parse the desired_access. Also added
other fixes to ensure we align after private data (discussed with Gerry).
Jeremy.
(This used to be commit 4369a58765f382e118e5393c805336484671cbf9)
Andrew Tridgell [Thu, 11 Apr 2002 14:30:31 +0000 (14:30 +0000)]
possibly fix the 15000 user problem
I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
(This used to be commit dfa990170bb9a665ba48443258e2a87f50baa75c)
Andrew Tridgell [Thu, 11 Apr 2002 14:20:18 +0000 (14:20 +0000)]
- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
hash to suit
- the prefix ends at the last dot, not the first
(This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)
Andrew Tridgell [Thu, 11 Apr 2002 09:56:38 +0000 (09:56 +0000)]
this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases
you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
(This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
Tim Potter [Thu, 11 Apr 2002 05:05:08 +0000 (05:05 +0000)]
Implemented a setup_logging() function that takes two keywords:
interactive and logfilename. These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.
Also added get_debuglevel() and set_debuglevel() functions.
Tim Potter [Thu, 11 Apr 2002 05:04:05 +0000 (05:04 +0000)]
Implemented a setup_logging() function that takes two keywords:
interactive and logfilename. These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.
Jeremy Allison [Thu, 11 Apr 2002 00:37:31 +0000 (00:37 +0000)]
Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
(This used to be commit 9f2753a1496c51fd56c97984b8def46a651dbfc8)
Jim McDonough [Wed, 10 Apr 2002 13:29:23 +0000 (13:29 +0000)]
Rename of ads_do_search_all2() to ads_do_search_all() and removal of
server sort controls. Also put option externs in the net.h include.
(This used to be commit b69f11170c2b27016c44a98bc603d1c94ad7d4c2)
Jim McDonough [Wed, 10 Apr 2002 13:28:03 +0000 (13:28 +0000)]
A few more updates:
- Add doxygen comments
- remove server sort control (ms implementation was not reliable)
- rename ads_do_search_all2() to ads_do_search_all_fn()
(This used to be commit 7aa5fa617221019de0f4565d07842df72673e154)
Tim Potter [Tue, 9 Apr 2002 23:03:17 +0000 (23:03 +0000)]
When printing a tdb log message display "unnamed" instead of "unknown" if
the tdb has not been named.
(This used to be commit 3e7985c60ee9888285769f1eb0ec81f764c26d91)
Andrew Bartlett [Tue, 9 Apr 2002 04:59:34 +0000 (04:59 +0000)]
Add a become_root()/unbecome_root() pair to allow acces to the passdb for
SID lookup. This fixes a bug where SIDs (rather than names) are displayed in windows ACL lists
(This used to be commit e60c509813a9113cd76135b6ded3018ff04d49f2)
John Terpstra [Sun, 7 Apr 2002 21:19:05 +0000 (21:19 +0000)]
Updated because I want this for now - NOTE: This will change before release
as this is NOT what we need to ship. This is experimental only at this time.
(This used to be commit 5c8ceaa4973bb7d82da886e03f24a972d978dcb7)
Jim McDonough [Fri, 5 Apr 2002 19:28:02 +0000 (19:28 +0000)]
Use the new ads_do_search_all2 function. It provides sorted results. We now
also filter out users that end in '$', which gives us the same results as
the net rpc user and net rap user.
(This used to be commit e3a813831276ec2aafa0caa4f4fed0785dcdb749)
Jim McDonough [Fri, 5 Apr 2002 19:26:52 +0000 (19:26 +0000)]
Several updates to get server side sorting going:
- Added sort control to ads_do_paged_search. It allows a char * to be passed
as the sort key. If NULL, no sort is done.
- fixed a bug in the processing of controls (loop wasn't incremented properly)
- Added ads_do_search_all2, which funs a function that is passed in against
each entry. No ldapmessage structures are returned. Allows results to
be processed as the come in on each page.
I'd like ads_do_search_all2 to replace ads_do_search_all, but there's some
work to be done in winbindd_ads.c first.
Also, perhaps now we can do async ldap searches? Allow us to process a
page while the server retrieves the next one?
(This used to be commit 95bec4c8bae0e29f816ec0751bf66404e1f2098e)
Tim Potter [Fri, 5 Apr 2002 05:48:01 +0000 (05:48 +0000)]
Converted drivers, forms and ports functions to use new conversion routines
and exception throwing.
(This used to be commit ed0a6480f75b3eefc52bc3311d8c3816abefcff2)
Tim Potter [Fri, 5 Apr 2002 04:54:48 +0000 (04:54 +0000)]
New routines to convert between structures and python dictionaries. We now
hide to_struct() and from_struct() from the caller so we can add custom
fields nicely.
(This used to be commit 07d79f4aa8de8e7a08555a62faafd79573a95e74)
Tim Potter [Fri, 5 Apr 2002 04:49:39 +0000 (04:49 +0000)]
Don't include py_spoolss_conv.h by default. We want to hide these
functions from method functions.
(This used to be commit bbf905e29e787ac350c0b4153c0b7050d8bf5734)
Tim Potter [Fri, 5 Apr 2002 04:47:43 +0000 (04:47 +0000)]
Added functions to return Python tuples (error code, error string)
corresponding to NT and DOS errors.
(This used to be commit cb243e2766260f03de6b748d20734b8183cf192b)
Jim McDonough [Fri, 5 Apr 2002 01:36:28 +0000 (01:36 +0000)]
Lots more net consistency work:
- Added net_help.c for unified help when possible
- Added net rpc user listing, delete, info commands
- Unified net user command to autodetect ads/rpc/rap (try in that order)
- Added generic routine for detecting rpc (protocol > PROTOCOL_NT1)
- I'm sure I forgot something.
(This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf)
Jim McDonough [Thu, 4 Apr 2002 16:53:07 +0000 (16:53 +0000)]
Multiple changes:
- Get rid of improper "Invalid option: d (100)" message when setting
debug from commandline.
- Eliminate got_pass global and only use opt_password. This enables
re-use of password that may have been enetered in failed ads connect.
- Auto-detect method for net user command
- use new net_ads_check rather than lp_security==ADS test on net join
- Get rid of annoying debug level 0's
(This used to be commit 1280968000595c28ed62d9e74acecfdc84e33710)
Jim McDonough [Thu, 4 Apr 2002 16:47:24 +0000 (16:47 +0000)]
More updates for auto-detecting server connection method. Added net_ads_check()
to make a connection (which stores the password in a global so it can be
used by rpc or rap function if ads fails) and close it to verify if ads
method should be used.
(This used to be commit 093297a27db9834cf8aea34302246af8997d9c66)
Tim Potter [Thu, 4 Apr 2002 06:55:32 +0000 (06:55 +0000)]
If compiling with Insure, mallocate a byte of memory and attach it to the
POLICY_HND structure when passing new handles back from the appropriate
cli_* functions. When closing the policy handle free the memory.
Insure (and indeed other memory checkers) should detect handles that have
not been closed properly as memory leaks. Unfortunately this can only be
done when the program terminates (set insure++.summarize leaks in your
.psrc file) rather than when the policy handle falls out of scope.
Looks like Jeremy has squished all the policy handle leaks at the moment
but more are bound to crop up later.
(This used to be commit 6dc80d625752f0a3ce6fd7b2278095529c6ec29f)
Tim Potter [Thu, 4 Apr 2002 05:47:41 +0000 (05:47 +0000)]
Use m4-mode when editinging configure.in under emacs.
Use $CC instead of $SHLD for the "test whether building a shared library
actually works". At the moment this is failing as $SHLD (and $LDSHFLAGS -
look at the value this is set to for Solaris) are designed to be used from
a Makefile and not within configure so this test will always fail!
Tridge has suggested moving to libtool^H^H^H^H^H a shell script that
invokes the right linker with the right args and solves this problem
nicely.
(This used to be commit 4caf71d5b28e003133bacca153278478d8245989)
Jeremy Allison [Thu, 4 Apr 2002 03:03:39 +0000 (03:03 +0000)]
Fix up conversion code from old winbindd versions (some testing needed).
Added time based cache size check (#ifdef'ed out by default, just didn't
want to lose the code).
Jeremy.
(This used to be commit b2350ed36c42827c417ea4a3dd0668a4a631a090)
Jim McDonough [Thu, 4 Apr 2002 03:03:00 +0000 (03:03 +0000)]
Try harder next time to not duplicate function...take ads_err2string back
out since it's already in ads_errstr() in ads_status.c
(This used to be commit 0475126ffb69f0485fd31511cb13d98df74a8d5b)
Jim McDonough [Thu, 4 Apr 2002 02:53:42 +0000 (02:53 +0000)]
Add net ads user subcommands: add delete info. Also make user listing format
consistent with rap version.
(This used to be commit f6eb7c0c7ec83a3674d56f0e222b900887327319)