1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

9949 Commits

Author SHA1 Message Date
Christopher R. Hertel
e6df31f14b The definition of pstrcpy_base(), and the preceeding comments, were given
twice (probably a cut/paste error).
The definition of pstrcpy_base(), and the preceeding comments, were given
twice (probably a cut/paste error).
(This used to be commit 5306f6f7c88234d51c4ff13d5451d3489de6b00e)
2003-03-27 05:11:25 +00:00
Jeremy Allison
1556b9b53c Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ae754e9355c78c22ff5ca5a7f3276e61b4a8fcb7)
2003-03-26 22:15:37 +00:00
Jelmer Vernooij
4c74bfcbda Remove LDAP_LIBS and just use LIBS again as before. I'll
fix this better later.
(This used to be commit c6807d20457325012c4c9edd137b2f1f67e98ec4)
2003-03-26 20:16:48 +00:00
Jeremy Allison
43c5f197ef Add defines for platforms that need them.
Jeremy.
(This used to be commit f81128bc0187765f6f9e6d7e05eaebf778cbfec8)
2003-03-26 19:42:51 +00:00
Jeremy Allison
4d7388641a Fix extra NULL arg added during app-head merge.
Jeremy.
(This used to be commit 4868633bc8182b939190d3cdb86b24cbdb78b5e1)
2003-03-26 19:31:44 +00:00
Jelmer Vernooij
fa0ea6d561 Use SAFE_FREE() instead of plain free() - pointed out by metze
(This used to be commit b49436d020f8d88d42428c83ea9a278d3433d134)
2003-03-26 13:49:23 +00:00
Jelmer Vernooij
70cf597a79 Use execinfo.h to get prototypes for backtrace_symbols (fixes
some warnings)
(This used to be commit d453b656e56a9b836b76f1cdce8de65d7bc4eb6c)
2003-03-26 13:43:29 +00:00
Jelmer Vernooij
5edbbc1808 Fix $LDAP_LIBS
(This used to be commit af98285f4e4fc4a0e890fed2c71b09280252b3f4)
2003-03-26 13:30:26 +00:00
Jelmer Vernooij
0eff00c692 Output backtrace to logfile in smb_panic(), as suggested by mbp
(only on systems that support it, of course)
(This used to be commit bf439d733df6a11a25ff561a853c3382a3b34b96)
2003-03-26 12:53:28 +00:00
Jelmer Vernooij
dee03e1d2d Don't do $(MAKE) modules_clean twice in a row - it breaks the build...
(This used to be commit 1e1544ecc12d1e7c00080894786f500cd774a6b3)
2003-03-25 23:53:34 +00:00
Jelmer Vernooij
6d73e56b30 Give PARAMS_OBJ more priority
(This used to be commit cf73797d110d271fc7a30c11e023c4d1ba2b5c9b)
2003-03-25 23:26:39 +00:00
Jelmer Vernooij
99038b9aee Do $(MAKE) modules_clean when compiling dynconfig.o. It's not the
most elegant solution, but it works.
(This used to be commit 02d202034dad56365a15c4e9fdcb7c420a77e1ed)
2003-03-25 22:57:29 +00:00
Jelmer Vernooij
dc16a6848b Always rebuild modules after running ./configure (to prevent
undefined symbol errors)
(This used to be commit e193b47259d11b0eaef4071acb406d6433426733)
2003-03-25 22:37:43 +00:00
Jelmer Vernooij
50311f4bac Remove old check for TDB SAM (we now have --with-{static,shared}-modules=pdb_tdbsam)
(This used to be commit 760fd4e5c48276696182febcae3b0a997999b1e2)
2003-03-25 18:10:55 +00:00
Jelmer Vernooij
4905ba282f - 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)
2003-03-25 14:46:11 +00:00
Jelmer Vernooij
bdd96341f1 Don't use 'opt'
(This used to be commit 6ab41e50fd0a36ebd9969064aa46235dc687dfba)
2003-03-25 13:59:55 +00:00
Jelmer Vernooij
f97934e3f5 Make variables static to satisfy exotic compilers
(This used to be commit 094eed2c6222fe167ee9f596f4b849a4dea234bf)
2003-03-25 13:40:34 +00:00
Jelmer Vernooij
e520d4be5e Print list of builtin modules in 'smbd -b'
(This used to be commit 3a2ed0da40c9709cdae061927f44a38f58e44df0)
2003-03-25 12:27:09 +00:00
Jelmer Vernooij
4987119020 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)
2003-03-25 12:05:23 +00:00
Jelmer Vernooij
5ee88b1891 We need to 'preprocess' in popt_common_samba as well
(This used to be commit 37ee8aecf4ae570c3d08e9fa94724bc9c917108f)
2003-03-25 10:37:58 +00:00
Andrew Bartlett
c0efc3536f Fix debug (thanks metze)
Andrew Bartlett
(This used to be commit 5562f1865c90e3f52a3178d9d9ded60909bbe5f0)
2003-03-25 10:29:22 +00:00
Volker Lendecke
910da34e6d Make auth.c compile again. I'm not sure what this does though...
Volker
(This used to be commit 8e3f300f21e23b7e6b68ddcc45d581a962cd8aa4)
2003-03-25 09:47:52 +00:00
Andrew Bartlett
fc64b4c000 Make these functions static, keep them out of proto.
(This used to be commit 34934d2edf0d575fae7d729fe4d8d3ab034a544f)
2003-03-25 07:55:10 +00:00
Volker Lendecke
25cdc523ed Apply metze's change correctly this time. Playing 'patch' by
hand can be somewhat error-prone..

Volker
(This used to be commit 12fabd07148c21f5481cb750f1cfdab2e8112e4b)
2003-03-25 07:54:34 +00:00
Gerald Carter
b7c4fa4cc6 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)
2003-03-25 04:19:04 +00:00
Jelmer Vernooij
6d6f1c0522 - Add support to auth/ for the new modules system
- Quite some small fixes (also fixes the build)
(This used to be commit 3defbd5e0633acfa4631531b49601c7706072d86)
2003-03-24 23:03:46 +00:00
Jelmer Vernooij
cdfe4b9b85 Fix two typos
(This used to be commit 898a246c1650326cbd9b8ca49fb93963e589ea1f)
2003-03-24 19:53:02 +00:00
Jelmer Vernooij
9ba1ed5271 When using --with-static-modules=subsystem, don't build modules that
can't be build
(This used to be commit bb943a68af20f87a4b2d6b257585615d1792dd33)
2003-03-24 19:18:24 +00:00
Jelmer Vernooij
f2c1d6895f Give error message when module doesn't seem to contain
pipe functions
(This used to be commit 4dd16790436d18f5ac5868538309128e3f8ad1cc)
2003-03-24 18:38:59 +00:00
Jelmer Vernooij
acffe03f93 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)
2003-03-24 18:25:31 +00:00
Jelmer Vernooij
75b3445d04 Add static to satisfy exotic compilers
(This used to be commit 269c93ca269e5badd5475d9ad53d06f9cb111d2c)
2003-03-24 16:16:13 +00:00
Jelmer Vernooij
a4d819e1e8 Add mapping for Bad Network Path
(This used to be commit 1481cd9ecf1658312424c193d8cd3632766eb058)
2003-03-24 16:15:10 +00:00
Jelmer Vernooij
66c321232a Don't use old usage() function, but the one from popt.
Remove some useless arguments
(This used to be commit 8df30059ef100a4d5e21501d7746427b4d312589)
2003-03-24 14:32:11 +00:00
Jelmer Vernooij
41a09c3c53 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)
2003-03-24 14:15:14 +00:00
Jelmer Vernooij
9ae249c6f1 Add modules support to charset
(This used to be commit cf3d31b9801d7ccb30334a92d4dc8a0ced2ecd31)
2003-03-24 12:47:21 +00:00
Jelmer Vernooij
66876060fe Define POPT_TABLEEND if current popt.h doesn't contain it already
(This used to be commit de4bdf42d8f27b54260f58ff37d438c67623f446)
2003-03-24 12:18:56 +00:00
Jelmer Vernooij
f9e66df9c7 Fix init function name and return value
(This used to be commit 27f3fbac724847f2d0926d2231808871508a7dd9)
2003-03-24 11:31:01 +00:00
Jelmer Vernooij
11e9de855c Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-24 11:25:34 +00:00
Tim Potter
2238286425 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)
2003-03-24 06:31:49 +00:00
Volker Lendecke
b5762d9937 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)
2003-03-23 14:19:13 +00:00
Jelmer Vernooij
dc0ce6f158 Convert to popt.
(This used to be commit 18d52ce914715d188966be95f9e4466666a04f74)
2003-03-23 13:42:38 +00:00
Andrew Bartlett
8e2c74c6ee Fix compile.
(This used to be commit 6fbee12a8170e0bce4e94806105786b38160ada5)
2003-03-23 13:18:05 +00:00
Jelmer Vernooij
67cf75843e Convert to popt.
(This used to be commit 691c63ad6b522ae7984017ebadffb5c7c13f6992)
2003-03-23 13:12:04 +00:00
Andrew Bartlett
1f5e93e2e7 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)
2003-03-23 13:03:25 +00:00
Jelmer Vernooij
b6520a4d48 Convert to popt.
(This used to be commit 83c7f1e1661da14ee46d4ca7a698728fb1beb23b)
2003-03-23 13:02:15 +00:00
Jelmer Vernooij
be47eb5032 Use popt_common for -s, -d and -V
(This used to be commit a1576694a6f23e1c70d7d81ac4feedd4f29c5400)
2003-03-23 12:40:48 +00:00
Jelmer Vernooij
477e1a8cee Don't duplicate the default group mapping functions - use the ones
from passdb
(This used to be commit 78e135cdb17dcf70d8a1259897fd44ecd7a4b3c6)
2003-03-23 12:29:19 +00:00
Volker Lendecke
cf4f074b94 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)
2003-03-23 11:49:24 +00:00
Volker Lendecke
da7c72736a 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)
2003-03-23 11:44:14 +00:00
Volker Lendecke
933b4d0d1b 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)
2003-03-23 09:04:25 +00:00