Tim Potter
e8a8b04002
Added cli_spoolss_enumjobs() function.
...
(This used to be commit 952eb866f4
)
2002-04-10 07:19:37 +00:00
Jeremy Allison
4ad0ff29bf
Added Shirish's client side caching policy change.
...
Jeremy.
(This used to be commit 16015c07ea
)
2002-04-10 01:04:13 +00:00
Andrew Tridgell
74af2c2cca
fixed a return value for a help function
...
(This used to be commit da794d3bbd
)
2002-04-10 00:36:06 +00:00
Tim Potter
9195f34e4a
Moved definition of winbind username/password secrets into secrets.h
...
(This used to be commit b618b5943d
)
2002-04-10 00:35:00 +00:00
Tim Potter
45d3315e32
When printing a tdb log message display "unnamed" instead of "unknown" if
...
the tdb has not been named.
(This used to be commit 3e7985c60e
)
2002-04-09 23:03:17 +00:00
Jeremy Allison
c36b31783e
Shirish pointed out more areas we should be doing roundups for allocation size.
...
Jeremy.
(This used to be commit cda9fccd62
)
2002-04-09 18:10:09 +00:00
Tim Potter
d0d61ba689
Fixed typo in debug statement.
...
(This used to be commit 49e429a97f
)
2002-04-09 06:19:42 +00:00
Tim Potter
bcb842be57
Fixed some compiler warnings.
...
(This used to be commit be6f955107
)
2002-04-09 05:59:46 +00:00
Tim Potter
416165a52c
Added WERR_INVALID_FORM_NAME constant.
...
(This used to be commit 908b70f3e2
)
2002-04-09 05:11:34 +00:00
Andrew Bartlett
5cdc9e1685
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 e60c509813
)
2002-04-09 04:59:34 +00:00
Tim Potter
07a65b3f07
Fixed setform and addform functions.
...
(This used to be commit ecba275cf7
)
2002-04-09 04:23:52 +00:00
Tim Potter
cc29c33fbe
Added constants for form types and WERROR values.
...
(This used to be commit 5ef5e805d5
)
2002-04-09 04:22:27 +00:00
Tim Potter
b408c4c5c0
The useless_ptr must be non-zero for addform and setform client functions
...
to work.
Note about setprinter level 1 not existing.
(This used to be commit 6367bfc478
)
2002-04-09 03:36:12 +00:00
Simo Sorce
9c1665b299
a fix yet committed to 2.2 sometimes ago and reintroduced here!
...
(This used to be commit aff7073dab
)
2002-04-08 09:29:28 +00:00
Andrew Bartlett
c21ff8f762
Reintroduce the 2.2 name mangling code, until we get are more flexible solution.
...
Even for a hash/cache setup, this code needs some more work, in particular
it needs to use mangle_get_prefix() etc and to move to unicode internals.
Andrew Bartlett
(This used to be commit ad8aa47057
)
2002-04-08 01:58:44 +00:00
Andrew Bartlett
0e6eb43e6b
Fix up major logic reversal flaws in pdb_ldap.
...
WARNING: if you relied on these logic flaws, you will need to manually
edit your ldap backend (for things like account expries etc).
Now correctly retunes the information needed for 'must change at next login'
support.
(This used to be commit 26842f1ac0
)
2002-04-08 01:52:44 +00:00
Tim Potter
b10b3be01c
Spelling.
...
(This used to be commit 423985ed56
)
2002-04-07 23:41:55 +00:00
Simo Sorce
68518222a7
uint32 store and fectch functions, a signed int is not enough sometimes
...
(This used to be commit f07b2b3d52
)
2002-04-07 22:04:39 +00:00
Simo Sorce
4f80466480
better check of called function's return
...
tdbtorture say it's ok
(This used to be commit af0fa4cf7c
)
2002-04-07 22:02:09 +00:00
Jeremy Allison
a9d328bb94
Always pass NT password as well as Lanman.
...
Jeremy.
(This used to be commit 146fb9d12b
)
2002-04-06 01:25:57 +00:00
Jeremy Allison
ca43b0da79
Fix Gerry bug - MajorVersion should be 2 not 3.
...
Jeremy.
(This used to be commit b8b88e863e
)
2002-04-05 22:41:39 +00:00
Jeremy Allison
2a3a68bf45
Fixed up admin user / guest user lookup.
...
Jeremy.
(This used to be commit 28ef07424f
)
2002-04-05 22:37:55 +00:00
Jim McDonough
3fcb31db92
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 e3a8138312
)
2002-04-05 19:28:02 +00:00
Jim McDonough
40260fdaf9
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 95bec4c8ba
)
2002-04-05 19:26:52 +00:00
Tim Potter
af7d3db053
New version of patch.
...
(This used to be commit 50f331ff33
)
2002-04-05 05:56:44 +00:00
Tim Potter
bf64a572ef
make proto
...
(This used to be commit 0448c12a56
)
2002-04-05 05:55:44 +00:00
Tim Potter
133f5216b3
Added new files for drivers, forms and ports conversion routines.
...
(This used to be commit f9f1d80f6e
)
2002-04-05 05:55:23 +00:00
Tim Potter
2aa9e1c22e
Fixed dodgy looking prototypes for py_to_* functions.
...
(This used to be commit 847e310921
)
2002-04-05 05:52:20 +00:00
Tim Potter
af96550f17
Removed unused label.
...
(This used to be commit e0a209bf29
)
2002-04-05 05:49:33 +00:00
Tim Potter
f9b571811d
Converted drivers, forms and ports functions to use new conversion routines
...
and exception throwing.
(This used to be commit ed0a6480f7
)
2002-04-05 05:48:01 +00:00
Tim Potter
77ab3b8850
Added py_spoolss_printers_conv.c to spoolss extension.
...
(This used to be commit d1e2356f13
)
2002-04-05 04:57:06 +00:00
Tim Potter
80e8fee64d
make proto
...
(This used to be commit c8278b0a92
)
2002-04-05 04:55:26 +00:00
Tim Potter
14c9883541
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 07d79f4aa8
)
2002-04-05 04:54:48 +00:00
Tim Potter
8735af51e2
Throw a spoolss.werror exception when the rpc client routines return
...
errors.
Move to new system of converting between structures and python
dictionaries. Lots of stuff moved to py_spoolss_printers_conv.c
Setprinter level 2 kind of works now.
(This used to be commit abe39ebcc1
)
2002-04-05 04:53:20 +00:00
Tim Potter
a05b7f721e
Don't include py_spoolss_conv.h by default. We want to hide these
...
functions from method functions.
(This used to be commit bbf905e29e
)
2002-04-05 04:49:39 +00:00
Tim Potter
f243d4e7c8
Added functions to return Python tuples (error code, error string)
...
corresponding to NT and DOS errors.
(This used to be commit cb243e2766
)
2002-04-05 04:47:43 +00:00
Jim McDonough
562706b32b
add utils/net_help.c to bin/net build
...
(This used to be commit f2a0e56b3c
)
2002-04-05 01:36:50 +00:00
Jim McDonough
1458b7c795
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 9daa5788c8
)
2002-04-05 01:36:28 +00:00
Tim Potter
05f973df82
Make bin/nsstest as part of torture target.
...
(This used to be commit dbb4dfcef7
)
2002-04-04 22:58:56 +00:00
Tim Potter
f18b466bf6
Fixed some compile warnings.
...
(This used to be commit fd8b3009eb
)
2002-04-04 22:56:39 +00:00
Tim Potter
b3d31d3897
More spelling.
...
(This used to be commit 21c3dff410
)
2002-04-04 20:38:10 +00:00
Jim McDonough
f21cfd9413
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 1280968000
)
2002-04-04 16:53:07 +00:00
Jim McDonough
773040a50f
Cleanups to make auto-detection of method on net user smoother.
...
(This used to be commit 84ab1042a6
)
2002-04-04 16:48:23 +00:00
Jim McDonough
e2745e88e5
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 093297a27d
)
2002-04-04 16:47:24 +00:00
Jean-François Micouleau
8ad60283be
small change in name_resolve_bcast()
...
spotted by alexander bokovoy.
it shouldn't break anything. if it's wrong, feel free to revert but
explain why.
J.F.
(This used to be commit 638c692525
)
2002-04-04 15:50:28 +00:00
Tim Potter
31f1c2172c
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 6dc80d6257
)
2002-04-04 06:55:32 +00:00
Tim Potter
f98b2faf99
Spelling.
...
(This used to be commit b43256df53
)
2002-04-04 06:47:20 +00:00
Tim Potter
4b925288ef
Call poptFreeContext() as appropriate.
...
Clean up exit path code.
(This used to be commit 41157400e3
)
2002-04-04 06:40:17 +00:00
Tim Potter
abc62df25f
oops
...
(This used to be commit 6b20a80902
)
2002-04-04 06:11:22 +00:00
Tim Potter
3d3ec9f4fd
Fixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
...
of strdup().
(This used to be commit fb32f7199b
)
2002-04-04 06:10:22 +00:00
Tim Potter
adbe65f21a
Rerun autoconf.
...
(This used to be commit a627d69812
)
2002-04-04 05:48:27 +00:00
Tim Potter
fbbc63f93c
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 4caf71d5b2
)
2002-04-04 05:47:41 +00:00
Tim Potter
0227568209
Also look for libinsure.so where the full version installs it.
...
(This used to be commit 2bf6595a2a
)
2002-04-04 04:54:44 +00:00
Tim Potter
29e67cad05
Free popt context after argument parsing.
...
(This used to be commit f287f62962
)
2002-04-04 04:29:09 +00:00
Tim Potter
18d011d736
Fixed memory leak in make_pdb_context_name()
...
Some reformatting and spelling fixes.
(This used to be commit a0f7bbad11
)
2002-04-04 03:53:43 +00:00
Jim McDonough
7bfa5ead49
Add non-ads version of net_ads_help for build on non-ads machines.
...
(This used to be commit dd7c20e533
)
2002-04-04 03:14:25 +00:00
Jim McDonough
c0bf7d9db4
Correct error string function call to ads_errstr()
...
(This used to be commit d7317ca8da
)
2002-04-04 03:06:22 +00:00
Jeremy Allison
464c120197
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 b2350ed36c
)
2002-04-04 03:03:39 +00:00
Jim McDonough
f21ccff91f
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 0475126ffb
)
2002-04-04 03:03:00 +00:00
Jim McDonough
a3f0bd0b68
Add ability to get specific net ads subcommand help. Not all have been
...
implemented yet...
(This used to be commit 24c6bf4e8b
)
2002-04-04 02:54:47 +00:00
Jim McDonough
94e3c18e9c
Add net ads user subcommands: add delete info. Also make user listing format
...
consistent with rap version.
(This used to be commit f6eb7c0c7e
)
2002-04-04 02:53:42 +00:00
Jim McDonough
e5a617127a
Add libads/ldap_user.c to build for ads user management.
...
(This used to be commit a1cdcdb138
)
2002-04-04 02:52:09 +00:00
Jim McDonough
3f31475eeb
Contains functions to manage/view AD user accounts via ldap. Initially has fns
...
to find and add a user.
(This used to be commit 773303a284
)
2002-04-04 02:51:02 +00:00
Jim McDonough
417b1ce487
Add ads_err2string() function for generating error strings from an ADS_STATUS.
...
I've got the cases besides gssapi...anyone know how to get those?
(This used to be commit c937e13522
)
2002-04-04 02:49:30 +00:00
Jeremy Allison
adc57a79d9
Fixed the handle leak in the connection management code (this code is crap
...
and should be rewritten, just not now... :-).
Jeremy.
(This used to be commit 5de792e7e9
)
2002-04-04 02:39:57 +00:00
Tim Potter
04014751dd
Rerun autoconf.
...
(This used to be commit 5c4ce2129f
)
2002-04-04 02:32:08 +00:00
Tim Potter
5614a72b78
Add -D__INSURE__ to the CPPFLAGS if CC=insure.
...
(This used to be commit fb80ff968c
)
2002-04-04 02:30:54 +00:00
Andrew Bartlett
6a0def7559
More winbind for HPUX updates from Don Mccall. I think JRA has already
...
applied these to 2.2.
Andrew Bartlett
(This used to be commit 51fe3324dd
)
2002-04-03 21:39:01 +00:00
Herb Lewis
62ad2d800e
reorder useage message a little. -L is not a root-only or local mode option.
...
(This used to be commit 020d6fa2f7
)
2002-04-03 16:44:15 +00:00
Tim Potter
c15c667afb
Start to make argument ordering consistent.
...
(This used to be commit e84cc7ea84
)
2002-04-03 04:47:44 +00:00
Tim Potter
5414561d40
Docstring updates.
...
(This used to be commit f05c3c6fc5
)
2002-04-03 04:40:35 +00:00
Tim Potter
baee819582
Use Py_InitModule3() instead of Py_InitModule4() when we only want to set
...
the docstring for the module.
Doc updates.
(This used to be commit ba5364b306
)
2002-04-03 04:38:59 +00:00
Gerald Carter
d843380398
removing unused files....
...
(This used to be commit 3d542abdb1
)
2002-04-03 03:06:22 +00:00
Gerald Carter
f624d6f3ae
added "list <pipe>" command to display the available commands
...
one a single pipe
(This used to be commit b73a8416d3
)
2002-04-02 23:28:40 +00:00
Jeremy Allison
87ea010ae1
Fix continual scanning of smb.conf if an include file doesn't exist. Found
...
by Herb.
Jeremy.
(This used to be commit f4f2a62740
)
2002-04-02 19:56:54 +00:00
Jeremy Allison
2a664807c5
Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
...
Forward ported some of the code tidyups from 2.2.
Jeremy.
(This used to be commit 2475c09b35
)
2002-04-02 19:34:36 +00:00
Jeremy Allison
6a64206a27
Fix from Stefan "metze" Metzmacher <metze@metzemix.de> to prevent us
...
overwriting an old MACHINE.SID sid.
Jeremy.
(This used to be commit 896d4fac98
)
2002-04-02 07:45:19 +00:00
Herb Lewis
105d1301d5
readd -c config file change from 2.2 - works with -L mode now as well.
...
(This used to be commit af4c3734b5
)
2002-04-02 06:18:13 +00:00
Gerald Carter
9cb6a94406
some mergee from SAMBA_2_2. Does compile, but needs some more testing.
...
This is an intermediate check-in. More to come....
(This used to be commit 5b9b152971
)
2002-04-02 01:10:41 +00:00
Andrew Tridgell
9dc5b31936
not all versions of gcc support -rdynamic
...
for example, gcc 2.95.2 on sco1 doesn't
(This used to be commit aa7eab7245
)
2002-04-01 09:52:36 +00:00
Andrew Tridgell
b0f405d825
try to get the summary test working on OpenBSD
...
(This used to be commit 63702ca3a4
)
2002-04-01 07:29:43 +00:00
Andrew Tridgell
6bd2b496ed
cope with a missing PAM define
...
(This used to be commit e5c3648fe7
)
2002-04-01 07:16:06 +00:00
Andrew Tridgell
3ce3047154
reverted Herbs smbpasswd commit as it completely broke setting a
...
password
(This used to be commit a5807d5784
)
2002-04-01 02:04:11 +00:00
Tim Potter
510d470e1e
Removed unused variable.
...
(This used to be commit 3e58e9dbab
)
2002-03-31 06:00:37 +00:00
John Terpstra
bb3f7f49b1
Added build option for "everything". Changed build options for libsmbclient.
...
(This used to be commit 32f292cc58
)
2002-03-30 20:26:50 +00:00
Herb Lewis
92a0f7949f
merge from 2.2 - allow -c option to specify smb.conf file
...
(This used to be commit fc15b56d29
)
2002-03-30 05:57:36 +00:00
Jeremy Allison
846670fa0e
Hack to share pipe handles between lsa and samr pipes as NT4.x usrmgr
...
insists on re-using an lsa handle opened on a pipe then closed - this
keeps them around so long as a samr pipe is also open.
Jeremy.
(This used to be commit f029bd348c
)
2002-03-30 00:45:26 +00:00
Jeremy Allison
a5dc8cb591
Don't core dump listing thousands of users in usrmgr.
...
Jeremy.
(This used to be commit c6566fa5fa
)
2002-03-29 21:50:21 +00:00
Jim McDonough
b94791f1d4
Re-implemented net ads user and net ads group to use the new
...
ads_process_results function. Also made sure net rap user and net ads
user display the same thing, to make auto-transport-detection smoother.
(This used to be commit 4cf42c07ec
)
2002-03-29 21:09:44 +00:00
Jim McDonough
2ed1dfcf4e
Added ads_process_results(), which takes a function that is called for each
...
entry returned from a search, and applies it to the results. Re-structured
ads_dump to use this, plus changed the ber_free in ads_dump from (b,1) to
(b,0), in accordance with openldap manpages. Also allows proper free of
result using ldap_msgfree afterwards, so you can do something with the
results after an ads_dump.
(This used to be commit f01f02fc56
)
2002-03-29 21:06:33 +00:00
Jeremy Allison
9a8b5fdd37
Ensure we return a parseable value if invalid handle given.
...
Jeremy.
(This used to be commit f169f3f4df
)
2002-03-29 20:37:56 +00:00
Herb Lewis
93af72fe45
merge winbindd WINS changes from 2.2
...
(This used to be commit 205399dc17
)
2002-03-29 15:37:39 +00:00
Jean-François Micouleau
14f0beb21c
added shutdown to smbd
...
J.F.
(This used to be commit 51a5bbfee7
)
2002-03-29 14:28:38 +00:00
Jean-François Micouleau
3e0c6ded65
nmbd handle shutdown message.
...
J.F.
(This used to be commit c33459f701
)
2002-03-29 13:58:32 +00:00
Jean-François Micouleau
e9f54e53cd
added a shutdown command to smbcontrol.
...
have to add the server side now.
J.F.
(This used to be commit b83f87d681
)
2002-03-29 13:49:48 +00:00
Jeremy Allison
63cbe1be9a
Fix to stop PERMANENT_NAMES being added when nmbd starts up and WINS
...
server is down. Keep adding refreshible names instead.
Jeremy.
(This used to be commit f25fcd99fa
)
2002-03-29 00:57:35 +00:00
Gerald Carter
16c3f6c7d0
merge from SAMBA_2_2
...
(This used to be commit 606450f3cb
)
2002-03-28 16:44:26 +00:00
Tim Potter
230e36ccde
Aborted experiment to avoid namespace pollution and prototype hell and
...
moved to 'make proto' based solution.
(This used to be commit 1e48f872a4
)
2002-03-28 04:14:43 +00:00
Tim Potter
321767cb66
Added another return type.
...
(This used to be commit 9b2777d3bc
)
2002-03-28 04:12:39 +00:00
Tim Potter
740b24658c
Use headername when closing off include file guards.
...
(This used to be commit 5bf5bffdd5
)
2002-03-28 03:43:54 +00:00