kai/samba.git
21 years agoAdd example version identifier
Jelmer Vernooij [Tue, 25 Mar 2003 22:15:57 +0000 (22:15 +0000)]
Add example version identifier
(This used to be commit 0558cae208067aa1e10060f22f12b2b8c09c53b1)

21 years agoAdd documentation on unicode
Jelmer Vernooij [Tue, 25 Mar 2003 20:49:13 +0000 (20:49 +0000)]
Add documentation on unicode
(This used to be commit cdfb0161adb37f70247b047eb93b92cfcf11783b)

21 years agoAdd info about dual daemon mode
Jelmer Vernooij [Tue, 25 Mar 2003 20:14:41 +0000 (20:14 +0000)]
Add info about dual daemon mode
(This used to be commit 2018b331a17a4ac485ac03e175ab24d9457a5b77)

21 years agoRemove old check for TDB SAM (we now have --with-{static,shared}-modules=pdb_tdbsam)
Jelmer Vernooij [Tue, 25 Mar 2003 18:10:55 +0000 (18:10 +0000)]
Remove old check for TDB SAM (we now have --with-{static,shared}-modules=pdb_tdbsam)
(This used to be commit 760fd4e5c48276696182febcae3b0a997999b1e2)

21 years agoFix another opened-but-not-closed tag
Alexander Bokovoy [Tue, 25 Mar 2003 17:42:46 +0000 (17:42 +0000)]
Fix another opened-but-not-closed tag
(This used to be commit 1c53686f3a2b2ff220836b76755a184fac0b238e)

21 years ago- Support building all auth modules as .so's
Jelmer Vernooij [Tue, 25 Mar 2003 14:46:11 +0000 (14:46 +0000)]
- Support building all auth modules as .so's
- Change 2 variable names to avoid conflicts (patch by Stephan Kulow <coolo@kde.org>)
(This used to be commit 71b05cd14ae6df8340730e7bad1c783dc278c5d3)

21 years agoDon't use 'opt'
Jelmer Vernooij [Tue, 25 Mar 2003 13:59:55 +0000 (13:59 +0000)]
Don't use 'opt'
(This used to be commit 6ab41e50fd0a36ebd9969064aa46235dc687dfba)

21 years agoMake variables static to satisfy exotic compilers
Jelmer Vernooij [Tue, 25 Mar 2003 13:40:34 +0000 (13:40 +0000)]
Make variables static to satisfy exotic compilers
(This used to be commit 094eed2c6222fe167ee9f596f4b849a4dea234bf)

21 years agoFixed opened-but-not-closed listitem/varlistentry for LDAPADMINDN
Alexander Bokovoy [Tue, 25 Mar 2003 13:37:36 +0000 (13:37 +0000)]
Fixed opened-but-not-closed listitem/varlistentry for LDAPADMINDN
(This used to be commit ec6b9e62fbfe417865e8e3b2ba7cc7473709c20e)

21 years agoPrint list of builtin modules in 'smbd -b'
Jelmer Vernooij [Tue, 25 Mar 2003 12:27:09 +0000 (12:27 +0000)]
Print list of builtin modules in 'smbd -b'
(This used to be commit 3a2ed0da40c9709cdae061927f44a38f58e44df0)

21 years agoRemove obsolete defines (because of new modules system). We need
Jelmer Vernooij [Tue, 25 Mar 2003 12:05:23 +0000 (12:05 +0000)]
Remove obsolete defines (because of new modules system). We need
a way to track which modules have been builtin
(This used to be commit 0f724be38439af9284e51b7b9b8605e8956e51ba)

21 years agoWe need to 'preprocess' in popt_common_samba as well
Jelmer Vernooij [Tue, 25 Mar 2003 10:37:58 +0000 (10:37 +0000)]
We need to 'preprocess' in popt_common_samba as well
(This used to be commit 37ee8aecf4ae570c3d08e9fa94724bc9c917108f)

21 years agoFix debug (thanks metze)
Andrew Bartlett [Tue, 25 Mar 2003 10:29:22 +0000 (10:29 +0000)]
Fix debug (thanks metze)

Andrew Bartlett
(This used to be commit 5562f1865c90e3f52a3178d9d9ded60909bbe5f0)

21 years agoMake auth.c compile again. I'm not sure what this does though...
Volker Lendecke [Tue, 25 Mar 2003 09:47:52 +0000 (09:47 +0000)]
Make auth.c compile again. I'm not sure what this does though...

Volker
(This used to be commit 8e3f300f21e23b7e6b68ddcc45d581a962cd8aa4)

21 years agoFix missing tag pairs
Alexander Bokovoy [Tue, 25 Mar 2003 09:46:57 +0000 (09:46 +0000)]
Fix missing tag pairs
(This used to be commit 44d9062f91d13b43b1e78c30931a017031f17116)

21 years agoMake these functions static, keep them out of proto.
Andrew Bartlett [Tue, 25 Mar 2003 07:55:10 +0000 (07:55 +0000)]
Make these functions static, keep them out of proto.
(This used to be commit 34934d2edf0d575fae7d729fe4d8d3ab034a544f)

21 years agoApply metze's change correctly this time. Playing 'patch' by
Volker Lendecke [Tue, 25 Mar 2003 07:54:34 +0000 (07:54 +0000)]
Apply metze's change correctly this time. Playing 'patch' by
hand can be somewhat error-prone..

Volker
(This used to be commit 12fabd07148c21f5481cb750f1cfdab2e8112e4b)

21 years agowin9x was suffered a case of the blues during a domain logon.
Gerald Carter [Tue, 25 Mar 2003 04:19:04 +0000 (04:19 +0000)]
win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the
tcon&X fixes this.
(This used to be commit c458179d21465165705e6c035776698cb824baf5)

21 years ago- Add support to auth/ for the new modules system
Jelmer Vernooij [Mon, 24 Mar 2003 23:03:46 +0000 (23:03 +0000)]
- Add support to auth/ for the new modules system
- Quite some small fixes (also fixes the build)
(This used to be commit 3defbd5e0633acfa4631531b49601c7706072d86)

21 years agoFix two typos
Jelmer Vernooij [Mon, 24 Mar 2003 19:53:02 +0000 (19:53 +0000)]
Fix two typos
(This used to be commit 898a246c1650326cbd9b8ca49fb93963e589ea1f)

21 years agoWhen using --with-static-modules=subsystem, don't build modules that
Jelmer Vernooij [Mon, 24 Mar 2003 19:18:24 +0000 (19:18 +0000)]
When using --with-static-modules=subsystem, don't build modules that
can't be build
(This used to be commit bb943a68af20f87a4b2d6b257585615d1792dd33)

21 years agoAdd notes for packagers
Jelmer Vernooij [Mon, 24 Mar 2003 18:47:18 +0000 (18:47 +0000)]
Add notes for packagers
(This used to be commit 9bec6889047814dc00eea102d6c3368d3942db94)

21 years agoGive error message when module doesn't seem to contain
Jelmer Vernooij [Mon, 24 Mar 2003 18:38:59 +0000 (18:38 +0000)]
Give error message when module doesn't seem to contain
pipe functions
(This used to be commit 4dd16790436d18f5ac5868538309128e3f8ad1cc)

21 years agoSimplify modules interface and make it easier to build
Jelmer Vernooij [Mon, 24 Mar 2003 18:25:31 +0000 (18:25 +0000)]
Simplify modules interface and make it easier to build
complete subsystems as modules (--with-shared-modules=rpc,pdb_xml,pdb_ldap
works now, for example)
(This used to be commit f622bdc691fabed218598fb0546b9e933aed63ed)

21 years agoAdd static to satisfy exotic compilers
Jelmer Vernooij [Mon, 24 Mar 2003 16:16:13 +0000 (16:16 +0000)]
Add static to satisfy exotic compilers
(This used to be commit 269c93ca269e5badd5475d9ad53d06f9cb111d2c)

21 years agoAdd mapping for Bad Network Path
Jelmer Vernooij [Mon, 24 Mar 2003 16:15:10 +0000 (16:15 +0000)]
Add mapping for Bad Network Path
(This used to be commit 1481cd9ecf1658312424c193d8cd3632766eb058)

21 years agoRemove documentation for removed options
Jelmer Vernooij [Mon, 24 Mar 2003 14:32:55 +0000 (14:32 +0000)]
Remove documentation for removed options
(This used to be commit 2cb23016385a286006a08170188b4e7ca62429d9)

21 years agoDon't use old usage() function, but the one from popt.
Jelmer Vernooij [Mon, 24 Mar 2003 14:32:11 +0000 (14:32 +0000)]
Don't use old usage() function, but the one from popt.
Remove some useless arguments
(This used to be commit 8df30059ef100a4d5e21501d7746427b4d312589)

21 years agoeditreg, wrepld and ntlm_aut aren't documented yet..
Jelmer Vernooij [Mon, 24 Mar 2003 14:20:28 +0000 (14:20 +0000)]
editreg, wrepld and ntlm_aut aren't documented yet..
(This used to be commit bd197baa8657d7708804e67e37d10be6acf75af6)

21 years agoRevoke some of the popt patch from metze I applied earlier today. It added
Jelmer Vernooij [Mon, 24 Mar 2003 14:15:14 +0000 (14:15 +0000)]
Revoke some of the popt patch from metze I applied earlier today. It added
some double options and broke some parameters.
(This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)

21 years agoDocument common arguments with entities
Jelmer Vernooij [Mon, 24 Mar 2003 14:14:10 +0000 (14:14 +0000)]
Document common arguments with entities
(This used to be commit adafcbb9af4a22db0fefb70966564d8591b5baed)

21 years agoAdd modules support to charset
Jelmer Vernooij [Mon, 24 Mar 2003 12:47:21 +0000 (12:47 +0000)]
Add modules support to charset
(This used to be commit cf3d31b9801d7ccb30334a92d4dc8a0ced2ecd31)

21 years agoDefine POPT_TABLEEND if current popt.h doesn't contain it already
Jelmer Vernooij [Mon, 24 Mar 2003 12:18:56 +0000 (12:18 +0000)]
Define POPT_TABLEEND if current popt.h doesn't contain it already
(This used to be commit de4bdf42d8f27b54260f58ff37d438c67623f446)

21 years agoFix init function name and return value
Jelmer Vernooij [Mon, 24 Mar 2003 11:31:01 +0000 (11:31 +0000)]
Fix init function name and return value
(This used to be commit 27f3fbac724847f2d0926d2231808871508a7dd9)

21 years agoPatch from metze to generalise POPT_COMMON_SAMBA, with some minor changes
Jelmer Vernooij [Mon, 24 Mar 2003 11:25:34 +0000 (11:25 +0000)]
Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)

21 years agoStarted working on python routines to add and delete domain users.
Tim Potter [Mon, 24 Mar 2003 06:31:49 +0000 (06:31 +0000)]
Started working on python routines to add and delete domain users.
Unfortunately users get created with the ACB mask set to disabled and
must change password.  The set_user_info2 call required to fix this
doesn't quite work yet...
(This used to be commit 55a341a367a7d1b18ae7ef04678479eb74b68ea3)

21 years agoBuild the profiles.1 and smbtree.1 manpages
Jelmer Vernooij [Sun, 23 Mar 2003 16:27:31 +0000 (16:27 +0000)]
Build the profiles.1 and smbtree.1 manpages
(This used to be commit 5bf945d86927e09cbb665e6fb59111b6bdc60fd4)

21 years agoDocument Tim's smbtree program
Jelmer Vernooij [Sun, 23 Mar 2003 16:26:53 +0000 (16:26 +0000)]
Document Tim's smbtree program
(This used to be commit aa528bf0f2c3286a6f78c1a36e48c6ff15a85457)

21 years agoImplement abartlet's suggestion to add attribs to ldap if they
Volker Lendecke [Sun, 23 Mar 2003 14:19:13 +0000 (14:19 +0000)]
Implement abartlet's suggestion to add attribs to ldap if they
are 'SET' when adding the account.

I really don't like passing flags down to inner routines and
complicated if/else conditions, but this time he might be right. ;-)

Volker
(This used to be commit 80d2578108da14f60133df3a308b867beb27e920)

21 years agoConvert to popt.
Jelmer Vernooij [Sun, 23 Mar 2003 13:42:38 +0000 (13:42 +0000)]
Convert to popt.
(This used to be commit 18d52ce914715d188966be95f9e4466666a04f74)

21 years agoFix compile.
Andrew Bartlett [Sun, 23 Mar 2003 13:18:05 +0000 (13:18 +0000)]
Fix compile.
(This used to be commit 6fbee12a8170e0bce4e94806105786b38160ada5)

21 years agoConvert to popt.
Jelmer Vernooij [Sun, 23 Mar 2003 13:12:04 +0000 (13:12 +0000)]
Convert to popt.
(This used to be commit 691c63ad6b522ae7984017ebadffb5c7c13f6992)

21 years agoNTLM Authentication:
Andrew Bartlett [Sun, 23 Mar 2003 13:03:25 +0000 (13:03 +0000)]
NTLM Authentication:

- Add a 'privileged' mode to Winbindd.  This is achieved by means of a directory
  under lockdir, that the admin can change the group access for.

- This mode is now required to access with 'CRAP' authentication feature.
- This *will* break the current SQUID helper, so I've fixed up our ntlm_auth
  replacement:
 - Update our NTLMSSP code to cope with 'datagram' mode, where we don't get a
   challenge.
 - Use this to make our ntlm_auth utility suitable for use in current Squid 2.5
   servers.
 - Tested - works for Win2k clients, but not Win9X at present.  NTLMSSP updates
   are needed.
 - Now uses fgets(), not x_fgets() to cope with Squid environment (I think
   somthing to do with non-blocking stdin).

- Add much more robust connection code to wb_common.c - it will not connect to
  a server of a different protocol version, and it will automatically try and
  reconnect to the 'privileged' pipe if possible.
  - This could help with 'privileged' idmap operations etc in future.

- Add a generic HEX encode routine to util_str.c,
- fix a small line of dodgy C in StrnCpy_fn()

- Correctly pull our 'session key' out of the info3 from th the DC.  This is
  used in both the auth code, and in for export over the winbind pipe to
  ntlm_auth.

- Given the user's challenge/response and access to the privileged pipe,
  allow external access to the 'session key'.  To be used for MSCHAPv2
  integration.

Andrew Bartlett
(This used to be commit dcdc75ebd89f504a0f6e3a3bc5b43298858d276b)

21 years agoConvert to popt.
Jelmer Vernooij [Sun, 23 Mar 2003 13:02:15 +0000 (13:02 +0000)]
Convert to popt.
(This used to be commit 83c7f1e1661da14ee46d4ca7a698728fb1beb23b)

21 years agoUse popt_common for -s, -d and -V
Jelmer Vernooij [Sun, 23 Mar 2003 12:40:48 +0000 (12:40 +0000)]
Use popt_common for -s, -d and -V
(This used to be commit a1576694a6f23e1c70d7d81ac4feedd4f29c5400)

21 years agoDon't duplicate the default group mapping functions - use the ones
Jelmer Vernooij [Sun, 23 Mar 2003 12:29:19 +0000 (12:29 +0000)]
Don't duplicate the default group mapping functions - use the ones
from passdb
(This used to be commit 78e135cdb17dcf70d8a1259897fd44ecd7a4b3c6)

21 years agoThis does two things:
Volker Lendecke [Sun, 23 Mar 2003 11:49:24 +0000 (11:49 +0000)]
This does two things:

* pdbedit -i -e sets all SAM_ACCOUNT elements
  to CHANGED to satisfy the new pdb_ldap.c handling

* pdbedit -g transfers group mappings. I made this
  separate from the user database, as current installations
  have to live with a split backend.

  So, if you are running 3_0 alphas with LDAP as a backend
  and upgrade to the next 3_0 alpha, you should call

  pdbedit -i tdbsam -e ldapsam -g

  to transfer your group mapping database to LDAP.

  You certainly have to have all your groups as posixGroup
  objects in LDAP and adapt the LDAP schema before this
  call.

Volker
(This used to be commit 6d3faeaef6c77e389d39b6d4660ffea13e7f25f2)

21 years agoThe group mapping functions are not called
Volker Lendecke [Sun, 23 Mar 2003 11:44:14 +0000 (11:44 +0000)]
The group mapping functions are not called
directly anymore, but instead through the passdb
interface. So we can make them static.

Volker
(This used to be commit a91af4bea8e761a812f5c70fdc7c7cd15366b412)

21 years agoThis adds 'ldap delete dn' as the recommended parameter
Volker Lendecke [Sun, 23 Mar 2003 09:04:25 +0000 (09:04 +0000)]
This adds 'ldap delete dn' as the recommended parameter
for the 'ldap del only sam attr' functionality. So
we are compatiple to the current SuSE patches as well
as to TNG... ;-)

Volker
(This used to be commit 353309e2a3bc27e918bd0a6cf22833d57895fbc8)

21 years agoMetzes change:
Volker Lendecke [Sun, 23 Mar 2003 08:40:28 +0000 (08:40 +0000)]
Metzes change:

> Hi Volker,
>
> if 'displayName' is not available we should fallback to 'cn' for map->nt_name
> 'cn' is used as unix group name by nss_ldap.
>
> and if nt_name is not available we should fail (so does this patch)

Volker
(This used to be commit 3a7d1e72e208b9609da4ff65d9fff9179799ecac)

21 years agoPatch from waider to update our samsync (net rpc vampire) code:
Andrew Bartlett [Sun, 23 Mar 2003 01:33:13 +0000 (01:33 +0000)]
Patch from waider to update our samsync (net rpc vampire) code:
 - Decode all the database names, even if we don't decode their contents
 - Update the 'set' code to match rpc_server/srv_samr_nt.c in only recording
   the difference between the old and new.

Andrew Bartlett
(This used to be commit 6509397f91a4c218552a48a96df06e595b630898)

21 years agoDon't declare variables after instructions
Jelmer Vernooij [Sun, 23 Mar 2003 01:09:43 +0000 (01:09 +0000)]
Don't declare variables after instructions
(This used to be commit 818bc35da7b66aa8c4156406b7ab3304d4c94a72)

21 years agoWe don't need optarg when we have popt
Jelmer Vernooij [Sun, 23 Mar 2003 00:47:35 +0000 (00:47 +0000)]
We don't need optarg when we have popt
(This used to be commit b46581ef153296a0a04f773115cb2ddad4d44686)

21 years agoConvert to popt.
Jelmer Vernooij [Sun, 23 Mar 2003 00:44:56 +0000 (00:44 +0000)]
Convert to popt.
(This used to be commit 5f12b246b03aef93165059f632012b6fc4706c70)

21 years agoUse True, not TRUE
Jelmer Vernooij [Sun, 23 Mar 2003 00:30:17 +0000 (00:30 +0000)]
Use True, not TRUE
(This used to be commit eeeeb37fc6de60928f7efdeb05bb2c6516f24441)

21 years agoFix typo in comment
Jelmer Vernooij [Sun, 23 Mar 2003 00:26:41 +0000 (00:26 +0000)]
Fix typo in comment
(This used to be commit e7ed8bfc24d94b0b6e70a03eaae927fe1daa7d56)

21 years agoAdd minimum man page
Jelmer Vernooij [Sun, 23 Mar 2003 00:26:09 +0000 (00:26 +0000)]
Add minimum man page
(This used to be commit 8597b8cb952713239aa510ef84e295a8bc8271c6)

21 years agoConvert to popt.
Jelmer Vernooij [Sun, 23 Mar 2003 00:18:44 +0000 (00:18 +0000)]
Convert to popt.
(This used to be commit 633b3eb7812dc0a58785536a1e7d28329d488b43)

21 years agoMove -V to -C to prevent conflict with -V for version
Jelmer Vernooij [Sun, 23 Mar 2003 00:12:54 +0000 (00:12 +0000)]
Move -V to -C to prevent conflict with -V for version
(This used to be commit 99de90adc98b8d5354c769dcd25cc1f34d3769e9)

21 years agoAlso move -V to -C in docs
Jelmer Vernooij [Sun, 23 Mar 2003 00:12:37 +0000 (00:12 +0000)]
Also move -V to -C in docs
(This used to be commit 33097cc6610380c373c121380e51d5656955971b)

21 years agoDon't crash when initialising tdb fails
Jelmer Vernooij [Sun, 23 Mar 2003 00:10:35 +0000 (00:10 +0000)]
Don't crash when initialising tdb fails
(This used to be commit b18d02891be1ea3728239eee15a4aed3c3be2fea)

21 years agoConvert to popt.
Jelmer Vernooij [Sat, 22 Mar 2003 23:55:33 +0000 (23:55 +0000)]
Convert to popt.
(This used to be commit 10c2fe08b6fdc2a9985a154b93555197bf5815fa)

21 years agoConvert to popt
Jelmer Vernooij [Sat, 22 Mar 2003 23:51:46 +0000 (23:51 +0000)]
Convert to popt
(This used to be commit 8f285878b30bad7388f69075538c628a7e18ac8a)

21 years agoAdd nicer --help headers
Jelmer Vernooij [Sat, 22 Mar 2003 23:50:11 +0000 (23:50 +0000)]
Add nicer --help headers
(This used to be commit e56ab71f1237a71c6ad4f321ce1db4e9397efd73)

21 years agoAdd -U, -N, -i, -A, -W to popt.
Jelmer Vernooij [Sat, 22 Mar 2003 23:48:02 +0000 (23:48 +0000)]
Add -U, -N, -i, -A, -W to popt.
(This used to be commit 5a88d78f67fd7853d6f7d5042807afa56091d52c)

21 years ago- Use FUNCTION_MACRO, not __FUNCTION__.
Jelmer Vernooij [Sat, 22 Mar 2003 23:25:44 +0000 (23:25 +0000)]
- Use FUNCTION_MACRO, not __FUNCTION__.
- Add some const
(This used to be commit e149e70717f38e082ce35d55f9b4d84ba8419af7)

21 years agoValgrind found a few memory leaks!
Andrew Bartlett [Sat, 22 Mar 2003 23:25:09 +0000 (23:25 +0000)]
Valgrind found a few memory leaks!

Andrew Bartlett
(This used to be commit fb680f610ceb9a0f350c99456cf7ab1a507543fe)

21 years agoDon't use EDQUOT on systems where it's not available
Jelmer Vernooij [Sat, 22 Mar 2003 22:04:58 +0000 (22:04 +0000)]
Don't use EDQUOT on systems where it's not available
(This used to be commit 2e1e5719f188a933e6b691fbd48037a0d29497e4)

21 years agoDetect missing -lroken properly on systems without krb5-config
Jelmer Vernooij [Sat, 22 Mar 2003 22:00:19 +0000 (22:00 +0000)]
Detect missing -lroken properly on systems without krb5-config
(This used to be commit 9c3b8533fc6d2a68e013668d0927d479f4ab58dd)

21 years agoReturn value in non-void function
Jelmer Vernooij [Sat, 22 Mar 2003 21:59:17 +0000 (21:59 +0000)]
Return value in non-void function
(This used to be commit 0efa773bac4b9fe2f79265413c32fecce55cc369)

21 years agoUse FUNCTION_MACRO, not __FUNCTION__
Jelmer Vernooij [Sat, 22 Mar 2003 20:49:55 +0000 (20:49 +0000)]
Use FUNCTION_MACRO, not __FUNCTION__
(This used to be commit 6df38e250af1a8e7213ad66342c71c52ce118a12)

21 years agoNever touch complicated if/else/elsif structures :-)
Volker Lendecke [Sat, 22 Mar 2003 20:48:47 +0000 (20:48 +0000)]
Never touch complicated if/else/elsif structures :-)

This repairs domain join with fully existing wks-account which I broke
with my last patch...

Volker
(This used to be commit 582a34efbe3c1570b852c93318ff6002954ddf6a)

21 years agoDon't use errno's when they're not available
Jelmer Vernooij [Sat, 22 Mar 2003 19:39:31 +0000 (19:39 +0000)]
Don't use errno's when they're not available
(This used to be commit b757a4374832d76500a889e4785622320881018d)

21 years agoThis changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
Volker Lendecke [Sat, 22 Mar 2003 19:15:50 +0000 (19:15 +0000)]
This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
anymore, but instead look at what is currently stored in the
database. Then we explicitly delete the existing attribute and add the
new value if it is not NULL or "". This way we can handle appearing
and disappearing attributes quite nicely.

This currently breaks pdbedit -o, as this does not set the CHANGED
flag on the SAM_ACCOUNT.

Jelmer suggested that we set all the fields on CHANGED in
context_add_sam_account. This sounds not too unreasonable.

Volker
(This used to be commit f7149cf500d2b10ee72163c018a39fdd192d7632)

21 years agoRevert bogus part of previous patch.
Andrew Bartlett [Sat, 22 Mar 2003 13:41:16 +0000 (13:41 +0000)]
Revert bogus part of previous patch.
(This used to be commit 3cddfe211da812a533611eecba5d5da55fd3cf2d)

21 years agoSmall clenaup patches:
Andrew Bartlett [Sat, 22 Mar 2003 13:06:52 +0000 (13:06 +0000)]
Small clenaup patches:
 - safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

Andrew Bartlett
(This used to be commit a7eba37aadeb0b04cb1bd89deddb58be8aba825c)

21 years agoFix compile on IA64 by noting that this should be the integer, not a pointer
Andrew Bartlett [Sat, 22 Mar 2003 10:54:03 +0000 (10:54 +0000)]
Fix compile on IA64 by noting that this should be the integer, not a pointer
to the integer for SIVAL().
(This used to be commit e8b4b136669e7e415557956d698c66c254b28ec1)

21 years agoIt seems that this causes some problems on some linux platforms - it's a
Andrew Bartlett [Sat, 22 Mar 2003 10:44:07 +0000 (10:44 +0000)]
It seems that this causes some problems on some linux platforms - it's a
pity becouse otherwise you need to link a program with it to get the
fstring/pstring bugs.

Andrew Bartlett
(This used to be commit b1b4370955d50fd4997c7171a99fe03f97190aca)

21 years agoPatch from Jianliang Lu <j.lu@tiesse.com> to set the 'minimum password age'
Andrew Bartlett [Sat, 22 Mar 2003 08:07:53 +0000 (08:07 +0000)]
Patch from Jianliang Lu <j.lu@tiesse.com> to set the 'minimum password age'
when setting the password.

Andrew Bartlett
(This used to be commit 552198b9e149c41f8cb2f976421ef030eac6fba6)

21 years agoFALSE -> False (reported by Paul Green)
Jelmer Vernooij [Sat, 22 Mar 2003 00:27:18 +0000 (00:27 +0000)]
FALSE -> False (reported by Paul Green)
(This used to be commit 1002b0bbff295548b74580dbb0dc0c76474af23b)

21 years agoClobber the 'SAFETY_MARGIN' in libsmb.
Andrew Bartlett [Fri, 21 Mar 2003 22:38:04 +0000 (22:38 +0000)]
Clobber the 'SAFETY_MARGIN' in libsmb.

Andrew Bartlett
(This used to be commit 05a63bd17e4c35979b3864b0969b2bfd945335d9)

21 years agoClobber our SMB buffers between packets. I hope this will help find bugs
Andrew Bartlett [Fri, 21 Mar 2003 22:37:14 +0000 (22:37 +0000)]
Clobber our SMB buffers between packets.  I hope this will help find bugs
where we assume the buffer is zero, when it might not be (ie due to, previous
packets).

Andrew Bartlett
(This used to be commit 191b0ab4d7c35c83d2bb2052b2e37d01fbf37b45)

21 years agoPatch from colo (on IRC) to get libsmbclient building due to pstring/fstring
Andrew Bartlett [Fri, 21 Mar 2003 22:31:25 +0000 (22:31 +0000)]
Patch from colo (on IRC) to get libsmbclient building due to pstring/fstring
issues.

Also pick up these link failures at compile time (rather than runtime).

Andrew Bartlett
(This used to be commit 23c7342bc40daffbcd70ef04727cae2c2b2c366b)

21 years agoMerge of new appliance-head scalable printing fixes.
Jeremy Allison [Fri, 21 Mar 2003 22:00:19 +0000 (22:00 +0000)]
Merge ... new appliance-head scalable printing fixes.
Jeremy.
(This used to be commit 301f17df51961b645b63d1520fc9c2e5627c1a0a)

21 years agoAdd more mappings to the nterr->errno mapping table. It should be fairly
Jelmer Vernooij [Fri, 21 Mar 2003 21:43:54 +0000 (21:43 +0000)]
Add more mappings to the nterr->errno mapping table. It should be fairly
complete now.
(This used to be commit 72bb5615f3eef1c5b27716dfcabe4c8288729458)

21 years agoGive volker a hand, and let domain joins with existing user accounts work
Andrew Bartlett [Fri, 21 Mar 2003 13:28:06 +0000 (13:28 +0000)]
Give volker a hand, and let domain joins with existing user accounts work
a bit better.

This just sets the minimum possible attributes - if we are 'upgrading' an
LDAP based user account, the attributes will be there anyway.  This matches
NT pretty well to.

This also fixes some use of unitialised values in the desired_access checking.
(found by valgrind).

Andrew Bartlett
(This used to be commit 929213ff2a5829ba8435ba1be0de317bca1e0da0)

21 years agoOnly build pdb_ldap if both ldap libs and headers are found
Jelmer Vernooij [Thu, 20 Mar 2003 17:45:23 +0000 (17:45 +0000)]
Only build pdb_ldap if both ldap libs and headers are found
(This used to be commit 228110e83fce91c811c82f6f836d313b6b79ff87)

21 years agoNT4 as well as W2k respond with IPC regardless of what service
Volker Lendecke [Thu, 20 Mar 2003 16:53:07 +0000 (16:53 +0000)]
NT4 as well as W2k respond with IPC regardless of what service
type the client requested in the TCONX when connecting to IPC$.

It is very well possible that this also applies to the DISK and PRINTER
share types, not only IPC.

Found this while trying to join a HEAD domain from NT4SP6.

Volker
(This used to be commit d42eb2116df4bb82c4199a688a057cd0a9f435ed)

21 years agoPatch from Samuel Thibault to convert messages from unix to dos charset. Works
Jelmer Vernooij [Thu, 20 Mar 2003 16:42:39 +0000 (16:42 +0000)]
Patch from Samuel Thibault to convert messages from unix to dos charset. Works
on 2000.
sending messages to 9x needs to be fixed, but that didn't work anyway
(This used to be commit ca066502a2a3dbdd8943d515c9c6d21e62d757b6)

21 years agoFix setOtherHelp() - pointed out by metze
Jelmer Vernooij [Thu, 20 Mar 2003 15:45:27 +0000 (15:45 +0000)]
Fix setOtherHelp() - pointed out by metze
(This used to be commit 05b1681b03688c0d4e57e8dfb881b111f947e6c6)

21 years agoFix compile errors - don't use pstrcpy() on a fstring
Jelmer Vernooij [Thu, 20 Mar 2003 14:49:37 +0000 (14:49 +0000)]
Fix compile errors - don't use pstrcpy() on a fstring
(This used to be commit 3bad73ca870bb43324bdb5dfc6bb02e0fa1fb1e0)

21 years agouse pstrcpy_base()
Jim McDonough [Thu, 20 Mar 2003 14:39:46 +0000 (14:39 +0000)]
use pstrcpy_base()
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)

21 years agoBuild samr as well
Jelmer Vernooij [Thu, 20 Mar 2003 13:59:58 +0000 (13:59 +0000)]
Build samr as well
(This used to be commit 1d33afdef9ea11e17c633109170d35ed66c4e2b8)

21 years agoUse True, not TRUE and False, not FALSE
Jelmer Vernooij [Thu, 20 Mar 2003 13:21:23 +0000 (13:21 +0000)]
Use True, not TRUE and False, not FALSE
(This used to be commit 44e9bf88cc2bbb2aa34711354258c3abb319cb9b)

21 years agoFix typo
Volker Lendecke [Thu, 20 Mar 2003 12:50:29 +0000 (12:50 +0000)]
Fix typo
(This used to be commit 5c6f5bef30db62f351d83ecdd6aa6990a567d842)

21 years agoI like debug level 10, but these messages always get into my way
Volker Lendecke [Thu, 20 Mar 2003 12:48:56 +0000 (12:48 +0000)]
I like debug level 10, but these messages always get into my way
when debugging pdc stuff...

Volker
(This used to be commit e1c275a66aa8a0fe29c61f4742fed5953671cb43)

21 years agoUpdate smbcacls.1 for 3.0
Jelmer Vernooij [Thu, 20 Mar 2003 12:08:42 +0000 (12:08 +0000)]
Update smbcacls.1 for 3.0
(This used to be commit 0ab40fac3a45b1f72b8bd53a48fc39dd46c69086)

21 years agoConvert smbcacls to popt
Jelmer Vernooij [Thu, 20 Mar 2003 12:07:52 +0000 (12:07 +0000)]
Convert smbcacls to popt
(This used to be commit 45e5374e89730e7ad497edf9e344fbd1b8992589)

21 years agoMake swat use popt
Jelmer Vernooij [Thu, 20 Mar 2003 11:11:32 +0000 (11:11 +0000)]
Make swat use popt
(This used to be commit 3cd1650d389850c2a36997a1a404d37bb28130e4)

21 years agoUpdate swat docs for 3.0
Jelmer Vernooij [Thu, 20 Mar 2003 11:09:36 +0000 (11:09 +0000)]
Update swat docs for 3.0
(This used to be commit 06c7a16b2d2040c0932eb663076cecb6d2cd3cdf)