samba.git
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:20:21 +0000 (14:20 +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 339c14906802db6ddb59f07a0c71dcc3c73cc3d6)

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:50:16 +0000 (11:50 +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 09a3db0ffcbbe578788d3dd5ee7540d27cc7c09a)

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:45:01 +0000 (11:45 +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 99da1119a7a7fc0879e63f7e11cb4500419359e8)

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 agoMerge from HEAD:
Volker Lendecke [Sun, 23 Mar 2003 09:18:33 +0000 (09:18 +0000)]
Merge from HEAD:

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 53b5704ff21de6fce097d74dd7f235d3ceccec66)

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:41:05 +0000 (08:41 +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 7ae9c2500e3ac5f671d41077327156f1f3767fff)

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 agoMerge of patch by waider to our samsync code.
Andrew Bartlett [Sun, 23 Mar 2003 02:22:41 +0000 (02:22 +0000)]
Merge of patch by waider to our samsync code.

(Decode all database names, and set only changes, not all info from the samsync
record).

Andrew Bartlett
(This used to be commit c7b8405bdebb9241ec335ccbbef630d90e61a419)

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(merge from HEAD) Valgrind found some memory leaks!
Andrew Bartlett [Sat, 22 Mar 2003 23:32:50 +0000 (23:32 +0000)]
(merge from HEAD) Valgrind found some memory leaks!
(This used to be commit 8315b9c3119dde62aeb72ad5e20f63aee89abd0b)

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 agoMerge from HEAD - Detect missing -lroken properly on machines without krb5-config
Jelmer Vernooij [Sat, 22 Mar 2003 22:01:48 +0000 (22:01 +0000)]
Merge from HEAD - Detect missing -lroken properly on machines without krb5-config
(This used to be commit 70634d248e74395c05d9980b07d53a20327a30a8)

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:49:26 +0000 (20:49 +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 bc59912aa10e5000225110e48ad548f19756bed5)

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:16:36 +0000 (19:16 +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 a75015c9ce8246670ee7c7d73df585390696fe95)

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 ago(merge from HEAD)
Andrew Bartlett [Sat, 22 Mar 2003 13:47:42 +0000 (13:47 +0000)]
(merge from HEAD)

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.

 - connection.c - use safe_strcpy()
Andrew Bartlett
(This used to be commit c91e76bddbe1244ddc8d12b092eba875834029ac)

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 agoFix compile on IA64 by noting that this should be the integer, not a pointer
Andrew Bartlett [Sat, 22 Mar 2003 10:53:20 +0000 (10:53 +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 5e20868fadc4e01ea09639bc57c51d1eb687f78c)

21 years agoThis caused problems on the build farm.
Andrew Bartlett [Sat, 22 Mar 2003 10:46:03 +0000 (10:46 +0000)]
This caused problems on the build farm.
(This used to be commit f16a70a405a702945ada42be638c3d17c59517c0)

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 agoMerge fixes to libsmbclient (fstring/pstring) from HEAD.
Andrew Bartlett [Sat, 22 Mar 2003 09:27:42 +0000 (09:27 +0000)]
Merge fixes to libsmbclient (fstring/pstring) from HEAD.

Andrew Bartlett
(This used to be commit 6bf04c41ed88528345f6bb19d48f5909753a8322)

21 years agoThanks to volker, merge passdb changes from HEAD:
Andrew Bartlett [Sat, 22 Mar 2003 09:03:46 +0000 (09:03 +0000)]
Thanks to volker, merge passdb changes from HEAD:

 - pdb_guest (including change defaults)
 - 'default' passdb actions (instead of 'not implemented' stubs in each module)

 - net_rpc_samsync no longer assumes pdb_unix

Andrew Bartlett
(This used to be commit 4bec53c8c81019f0f06a93c4df0800bbf7281dd6)

21 years agoMerge from HEAD - patch from Jianliang Lu <j.lu@tiesse.com> to set the
Andrew Bartlett [Sat, 22 Mar 2003 08:09:22 +0000 (08:09 +0000)]
Merge from HEAD - patch from Jianliang Lu <j.lu@tiesse.com> to set the
'minimum password age' during a password SET.

Andrew Bartlett
(This used to be commit dd6516e2e87cbe6bcbc371756d99ebb3b5617c2b)

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:21 +0000 (22:00 +0000)]
Merge ... new appliance-head scalable printing fixes.
Jeremy.
(This used to be commit 331e621b580f997592892be0226fb452c67ae9e1)

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 ago(merge from HEAD)
Andrew Bartlett [Fri, 21 Mar 2003 13:35:15 +0000 (13:35 +0000)]
(merge from HEAD)

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 536e24ee5b83eaa77be81dd50e3e1a5010b5abf4)

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 agoMerge from HEAD
Volker Lendecke [Thu, 20 Mar 2003 18:13:27 +0000 (18:13 +0000)]
Merge from HEAD
(This used to be commit d59a7bea6b22a4c3e6cacd1a4c5ee95f42b13a26)

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 dos to unix charset
Jelmer Vernooij [Thu, 20 Mar 2003 16:44:14 +0000 (16:44 +0000)]
Patch from Samuel Thibault to convert messages from dos to unix charset
when sending(and vice versa when receiving).
(This used to be commit 5310447ec6e0df1c000e3ee14572f5b7fee31f28)

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 agouse pstrcpy_base()
Jim McDonough [Thu, 20 Mar 2003 14:49:47 +0000 (14:49 +0000)]
use pstrcpy_base()
(This used to be commit 2e3710f67293b01084026549246d494103b2d536)

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 agoMerge from HEAD
Volker Lendecke [Thu, 20 Mar 2003 12:52:56 +0000 (12:52 +0000)]
Merge from HEAD
(This used to be commit 62d5a78b024898485f610b5d9db1a6d9a5c68c21)

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:16:14 +0000 (11:16 +0000)]
Make swat use popt
(This used to be commit eccb6998111ce7a56bfd11578ccd7c09958f407e)

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)

21 years agoUpdate wbinfo.1 for 3.0
Jelmer Vernooij [Thu, 20 Mar 2003 10:52:12 +0000 (10:52 +0000)]
Update wbinfo.1 for 3.0
(This used to be commit c057c6594e8c44993c01d6bb3a8d0916a2adcd24)

21 years agoMerge Herb's change.
Volker Lendecke [Thu, 20 Mar 2003 10:04:13 +0000 (10:04 +0000)]
Merge Herb's change.

Volker
(This used to be commit e8725913f9f174c03683a35bbce16ee33ab4c707)

21 years agoIf CFLAGS is set when running configure, then just use that.
Martin Pool [Thu, 20 Mar 2003 05:54:03 +0000 (05:54 +0000)]
If CFLAGS is set when running configure, then just use that.
Otherwise add -O.

(We used to always set -O, which is sometimes annoying when debugging
and anyhow clashes with normal autoconf behaviour.)
(This used to be commit aee2ad9c3444d59dd6f53dda5379a6c391e00002)

21 years agoMerge of compiler warning fixups.
Tim Potter [Thu, 20 Mar 2003 01:05:22 +0000 (01:05 +0000)]
Merge of compiler warning fixups.
(This used to be commit 0308a0a11265050f53fc7e8e03f8e17b04adb45d)

21 years agoMerge of removal of py_samba.c
Tim Potter [Thu, 20 Mar 2003 01:03:11 +0000 (01:03 +0000)]
Merge of removal of py_samba.c
(This used to be commit 68b4052281d22dace2ae9e48d022fa288c0a6425)

21 years agoMerge new .cvsignore files.
Tim Potter [Thu, 20 Mar 2003 01:02:46 +0000 (01:02 +0000)]
Merge new .cvsignore files.
(This used to be commit f0ab1b6147bc0a0e028e67b598bfc0cb9944c8cc)

21 years agolib/messages.c: Check return from chainlock before modifying message queue.
Jeremy Allison [Thu, 20 Mar 2003 00:52:37 +0000 (00:52 +0000)]
lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
(This used to be commit bf795b684e608f82db822e0759e7b69afd451b65)

21 years agolib/messages.c: Check return from chainlock before modifying message queue.
Jeremy Allison [Thu, 20 Mar 2003 00:51:41 +0000 (00:51 +0000)]
lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
(This used to be commit dee1326a1d8a0bf8977df22a0fe014dd5d8dc769)

21 years agoCleanup bogus initialisation in SID_NAME_USE enum.
Tim Potter [Thu, 20 Mar 2003 00:32:44 +0000 (00:32 +0000)]
Cleanup bogus initialisation in SID_NAME_USE enum.

Added new sid type = 9 for "computer" from MSDN.
(This used to be commit 45929d126932e5cac5a23fe76d28a4fa05b54b77)

21 years agovoid function cannot return a value (besides the function called was
Herb Lewis [Wed, 19 Mar 2003 22:38:37 +0000 (22:38 +0000)]
void function cannot return a value (besides the function called was
a void)
(This used to be commit 55681422e97ede0ff9446925c7678d6254b13878)

21 years agoAdd make rules for passdb/*.so
Jelmer Vernooij [Wed, 19 Mar 2003 22:16:38 +0000 (22:16 +0000)]
Add make rules for passdb/*.so
(This used to be commit ea85f8ff21bfad378eb8464a94bb182cb3e4f988)

21 years agoFix corrupt memory reading in smb_register_passdb
Jelmer Vernooij [Wed, 19 Mar 2003 21:09:18 +0000 (21:09 +0000)]
Fix corrupt memory reading in smb_register_passdb
(This used to be commit 6acbb37e4e32de635ace8420a5182b04b6527e34)

21 years agouse strnlen to prevent coredumps
Jim McDonough [Wed, 19 Mar 2003 20:50:56 +0000 (20:50 +0000)]
use strnlen to prevent coredumps
(This used to be commit 5078436d83f0fdc568d6687809c7c70dea5fd382)

21 years agouse strnlen to prevent coredumps
Jim McDonough [Wed, 19 Mar 2003 20:50:43 +0000 (20:50 +0000)]
use strnlen to prevent coredumps
(This used to be commit 1960a650c1546323708ed6bea615dc7215a97b4f)