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

594 Commits

Author SHA1 Message Date
Herb Lewis
6999ff1d48 initialize acct_ctrl variable before it is used
remove ldap_msgfree(result); as result is unitialized at this point
(This used to be commit 1102a6f8cdf295d564df5447a223b354be72895d)
2003-01-15 16:41:29 +00:00
Andrew Bartlett
212077afa2 Merge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.
Andrew Bartlett
(This used to be commit 2a1adb8f81d8966e8919fffb9b4c69f3e6acd44f)
2003-01-14 07:26:12 +00:00
Jeremy Allison
7f4177aa9e Fix open problem with changing attributes on an existing file - based
on work by  <steve@griffin.sio2.nl>.
Jeremy.
(This used to be commit 1cff725e37d04e25d2cd5523683b35c82d5040fa)
2003-01-08 02:09:18 +00:00
Andrew Bartlett
302bffc08f Merge from HEAD - we already have one function for converting a unistr2 to a
static 'unix' string, so we don't need a second pdb specific version.

Andrew Bartlett
(This used to be commit 91ca4771c6b834747b06fff21822a14e929de2c1)
2003-01-04 08:57:51 +00:00
Andrew Bartlett
c1a357ecb5 Merge from HEAD - don't base RID on a name being the lp_guest_account(), let
the actual passdb modules decide that.

Andrew Bartlett
(This used to be commit f3432869b9c761a029fd804d244d0ea26b26173d)
2003-01-04 08:50:57 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2003-01-03 08:28:12 +00:00
Jeremy Allison
98ac4503ac Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23 23:54:10 +00:00
Jeremy Allison
ef8bd7c4f7 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
2002-12-20 20:21:31 +00:00
Tim Potter
4413a3cfea Merge some more FUNCTION_MACRO stuff.
(This used to be commit adb34ee5b183d17ec0c26ec2cf4f591822c59900)
2002-12-20 01:22:57 +00:00
Gerald Carter
899b6e6d0f merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit f49de4c5176bf635ac080e082fda412066b466c8)
2002-12-13 02:07:05 +00:00
Andrew Bartlett
af874b62e1 Merge tridge's fixes to pdb_ldap (don't look for number of results in a
failed query) and my fixes to those fixes to use better NT_STATUS codes.

Andrew Bartlett
(This used to be commit 6040171cabe3ca215149708a6244e24bc9c2c4fa)
2002-11-26 21:00:18 +00:00
Jelmer Vernooij
7c64e03d9d Remove #ifdef's for NISPLUS_SAM - there are no function name collisions anymore
(This used to be commit 32c93921b01b5d28a2f5837026aad2445a0ece03)
2002-11-14 18:21:22 +00:00
Jeremy Allison
2f194322d4 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-12 23:20:50 +00:00
Jelmer Vernooij
375da9787e Improve DEBUG output somewhat more
(This used to be commit 2cc36ce0ee8383aa8a20a8dc5a3218693dc46817)
2002-11-11 18:54:13 +00:00
Jelmer Vernooij
29edab7547 Add more debug info
(This used to be commit 065ed9783236cf1e8254655a9a1d4de937b35018)
2002-11-11 18:42:13 +00:00
Jelmer Vernooij
af6902f5bf Print the number of returned rows, not the number of fields
(This used to be commit cf74ddc2fcb1e7286441edb432d8906bb722a3d4)
2002-11-10 16:30:23 +00:00
Jelmer Vernooij
e1a9236092 Back out some of my sync changes
(This used to be commit b1ad91101d10d1fa635cfbb1684f8b598280cee0)
2002-11-09 23:28:40 +00:00
Jelmer Vernooij
dc5297f413 Sync with HEAD
(This used to be commit 1a25dc776ddc36de9a214e023becff1ceb10290c)
2002-11-09 16:57:45 +00:00
Andrew Bartlett
c19598f2a6 Merge from HEAD:
- change auth_sam to use the initialisation flags to determine if
	 the password attributes are set

 - add const to secrets.c, cliconnect.c

 - passdb:  fix spelling in pdb_ldap, add group mapping back to smbpasswd

 - SAMR: add debugs to show what fails for group enum.

Andrew Bartlett
(This used to be commit 4e74d00b3634abf52aa24bfaa6dbe88202aa57a1)
2002-11-08 23:08:59 +00:00
cvs2svn Import User
2446d245df This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit aafa32d6809e1bc60a8186140f2f3cf2bf6bff16) 2002-11-07 19:45:56 +00:00
Jelmer Vernooij
0cd37de198 Fix small typo
(This used to be commit 3c39bd9db09c59f149d77e371ed078cd7ec2d1b4)
2002-11-07 19:45:55 +00:00
Jeremy Allison
bf3eda8249 Jeremy the janitor again... keeping 3.0 in sync with tridge's changes this
time.
Jeremy.
(This used to be commit 3803324d3d49f81ef0a82c4a9fedae70d32cb409)
2002-11-07 07:19:10 +00:00
Andrew Tridgell
720ca2c477 when doing a 'net rpc vampire' a pdb_init_sam_pw() is used to create a
sam account object, then pdb_update_sam_account() can be used to
update an account. This code path could lead to the methods element of
the account being used when uninitialised (leading to a segv)

Easiest fix is to always make that that when creating a sam_account
object we initialise the methods to null, so that the passdb code
knows that it needs to be filled in.
(This used to be commit fb79fa5a31c2fa8ebdcddbc49b1d9c1aa3059691)
2002-11-07 04:52:04 +00:00
Jeremy Allison
47955b2f6c Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
(This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-11-07 02:38:42 +00:00
Jelmer Vernooij
6ae9de8f39 Add group management support (patch from metze)
(This used to be commit 090a2015eb9aa4ec68d80e972ae192d19afd536e)
2002-11-06 22:10:16 +00:00
Jelmer Vernooij
809c4715da Adapt to latest pdb API changes - only thing left is group support
(This used to be commit 99a2e7fde1fd4e589035c273f40419ef322e097d)
2002-11-06 12:26:21 +00:00
Jelmer Vernooij
5f119d4597 pdb_get_unknown? -> pdb_get_unknown_?
(This used to be commit c13ed6c866fed43e5f83e083c377a1cd7d505061)
2002-11-06 11:21:47 +00:00
Jelmer Vernooij
82c714569d Move pdb_xml to source/
(This used to be commit b68106a79e4536fa82d75dd330d07dba51bfeaf4)
2002-11-05 17:08:32 +00:00
Jelmer Vernooij
42f569f06c Move pdb_mysql to source/passdb
(This used to be commit 1d742e14ad18070aee654071d159b8b7410d6f86)
2002-11-05 16:48:23 +00:00
Andrew Bartlett
b81b71a8d1 Merge vl's 'algorithmic rid base' patch, and my changes to pdb_smbpasswd's NUA
support from HEAD -> 3.0

Andrew Bartlett
(This used to be commit 89d8ebd520e2a441e6d5b6b8adb6c483b0131adc)
2002-11-05 07:20:27 +00:00
Andrew Bartlett
3ae2fcd776 Allow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
this will fix some of the problems on the build farm @ Compaq (where they have
a *lot* of accounts...).
(This used to be commit 2c97b7e6480c2731739ccc52af97bc62a6228cfe)
2002-11-04 13:15:53 +00:00
Andrew Bartlett
1336b8153e Fix debug
(This used to be commit 5b5b8de70e46a15e9fb9b47c7af6cb0133f41217)
2002-11-04 12:47:07 +00:00
Andrew Bartlett
a7f2feae31 Extra little fix to vl's patch. Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.

Andrew Bartlett
(This used to be commit b70f2a8047ac549841bc103932b38951e9814186)
2002-11-03 14:13:43 +00:00
Volker Lendecke
9422775efd Force algorithmic rid base to sane values and talk about it.
Volker
(This used to be commit ce5b2d991b42bbf6865ff75194f8ee4b46694841)
2002-11-03 12:54:12 +00:00
Andrew Bartlett
b3b24fb690 Merge of my 'ldap trust ids' patch from HEAD.
This hopefully provides a peformance boost by not hitting getpwnam() for every
entry in an enumeration, instead reteriving entries directly (if available).

idra has reviewed this patch.

Andrew Bartlett
(This used to be commit 8abe71c4d7a796001c5765f4dd88c2e6f5637802)
2002-11-02 12:13:44 +00:00
Andrew Bartlett
593e0b5d00 Clean up this a little - add comments describing a bit of what is going on
here.
(This used to be commit 88455313f6551a75eff4df2f0ba91430948c1c78)
2002-11-02 07:54:04 +00:00
Andrew Bartlett
b017064cec Add a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
attributes rather than calling getpwnam() on the user.

This should help fix some of metze's performance issues - particularly on
enumerations.

There is a consequential change to the operation of 'non unix account's in LDAP
- they are no longer restricted to being 'within' the NUA range, but will
always be added to that range.

Finally, there is the doco for this and the previous LDAP SSL changes.
(This used to be commit 18abaeffda300074a507561d8372d5bfddc8fe50)
2002-11-02 07:09:17 +00:00
Andrew Bartlett
6d7195d1d7 Merge passdb from HEAD -> 3.0
The work here includes:
 - metze' set/changed patch, which avoids making changes to ldap on unmodified
attributes.

 - volker's group mapping in passdb patch

 - volker's samsync stuff
 - volkers SAMR changes.

 - mezte's connection caching patch

 - my recent changes (fix magic root check, ldap ssl)

Andrew Bartlett
(This used to be commit 2044d60bbe0043cdbb9aba931115672bde975d2f)
2002-11-02 03:47:48 +00:00
Andrew Bartlett
531cea2937 Return the result code, not false (0 == success) on error...
(This used to be commit f91c363bc05d1c82ad8a99a5c0d59b46cf820aac)
2002-11-02 03:37:26 +00:00
Andrew Bartlett
a66b852ddc Fixes for pdb_ldap:
- Default is now for start-tls, on the ldap (not ldaps) port
 - We check for 'I am currently root' in the right place now, and don't
   accidentily use a cached connection.
 - We don't loop on failure to be root, or some other errors.

 - A bit cleaner error reporting for add/modify.

 - Both the OpenLDAP and manual URI parsing tested.

Andrew Bartlett
(This used to be commit cfa1e459d727764feddcfdd8c9c0404282e2d0e8)
2002-11-02 03:14:27 +00:00
Andrew Bartlett
35ac9d287f Try to catch up on the code I've put into HEAD that should be in 3.0:
- vorlan's hosts allow with DNS names patch
 - use x_fileno() in debug.c, not the struct directly.
 - check for server timeout on password change (was reporting success)
 - better error/status loggin in both the pam_winbind client and winbindd_pam
server code.
 - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway.
(This used to be commit 9fa1863d8e7788eda83911ca2610754486b33069)
2002-10-26 02:20:59 +00:00
Andrew Bartlett
991f6ddac6 One more step towards to better PDC.
This patch, from "Stefan (metze) Metzmacher" <metze@metzemix.de> implements an
LDAP connection cache.  This removes the quite silly situation where every
single passdb operation involved a new LDAP connection.

The hope is that this will give us a decent performance boost in some usrmgr
related activities, and in the sid->name/sid->uid code.

The remaining things I think are 'todo' for pdb_ldap (in the near term) are:
 - intergrate volker's next_rid patch for NUA accounts,
 - add a 'trust ldap ids' option (remove Get_Pwnam() hit on enumerations).
 - put the group mapping actually into ldap
 - Schema fixes and do utf8 conversion
 - server failover (try a second server for the rebind on fail)
 - ensure we block between an 'add' and the ldap master replicating to our
   local slave (mezte found this issue, kills domain joins)

Andrew Bartlett
(This used to be commit 3418da16456511490beb0d1045fff24576b48273)
2002-10-26 01:47:38 +00:00
Jelmer Vernooij
bea0b200c8 Fix memory leak (patch by Steve Langasek)
(This used to be commit 06362586cb754bd6bc89b50b966737958286ca2e)
2002-10-25 02:37:11 +00:00
Jelmer Vernooij
48216962c4 Fix memory leak (patch by Steve Langasek)
(This used to be commit 299a9060e27d341658a7badbbb21401fbcc8f083)
2002-10-25 02:35:44 +00:00
Jelmer Vernooij
12b1a63ceb Only run free_private_data when specified (reported by Steve Langasek aka vorlon)
(This used to be commit ecd3acbfcf912a775718e320c7cb66f60436c546)
2002-10-25 00:38:10 +00:00
Jelmer Vernooij
5b90fdc6bb Only run free_private_data when it's specified (reported by Steve Langasek aka vorlon)
(This used to be commit 9efa98b4a65a38df922ce3b83f5fde631cb70844)
2002-10-25 00:36:28 +00:00
Volker Lendecke
2d19a6550b pdb_unix.c did not really expect group RIDs dictated by a PDC and looking
like user RIDs.

Volker
(This used to be commit 872c7d40454545108ec9e7eee12894af77b4adc3)
2002-10-21 20:31:59 +00:00
Volker Lendecke
5dbf435408 This moves the group mapping API into the passdb backend.
Currently this calls back to mapping.c, but we have the framework
to get the information into LDAP and the passdb.tdb (should we? I
think so..).

This has received moderate testing with net rpc vampire and
usrmgr. I found the add_groupmem segfault in add_aliasmem as
well, but that will be another checkin.

Volker
(This used to be commit f30095852fea19421ac8e25dfe9c5cd4b2206f84)
2002-10-21 19:28:56 +00:00
Jeremy Allison
e9cc37b0bb Start to merge the new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
Jeremy.
(This used to be commit 597c4610090d711fd30c1ffacc97212cf399a264)
2002-10-18 19:46:32 +00:00
Jeremy Allison
e13dd2f302 Start to merge the new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
Jeremy.
(This used to be commit f6103f866a5e698ab55fdab1444a14e3d8da16bb)
2002-10-18 19:46:28 +00:00