summaryrefslogtreecommitdiff
path: root/source3/nsswitch
AgeCommit message (Collapse)AuthorFilesLines
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell6-11/+11
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell4-12/+2
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-06-25fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell1-1/+2
instead of a define (This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
2001-06-21next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell1-18/+12
but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour (This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-20Merge from appliance branch:Tim Potter1-2/+8
Don't call find_domain_from_name() from winbindd_kill_connections() as you get stuck in an infinite loop! (This used to be commit 8e982941d82b813197f2a9720149e60f629b5b20)
2001-06-07Fixed typo in #ifndef at head of file.Tim Potter1-2/+2
(This used to be commit 6bd1ba9a0432ab5e6c2ebe6ea0fa486960fd4289)
2001-06-07Added comment about possible optimisation to winbindd_pam_auth()Tim Potter1-0/+4
(This used to be commit bb01d2151cde866f0e2d91ee7c58439eeb382c48)
2001-06-07Fixed bug in winbind_sid_to_gid() function.Tim Potter1-1/+1
(This used to be commit 9a77f8530f58852f07d523facc61ea1daf6184d7)
2001-06-06Fix for cli_samr_connect() arg change.Tim Potter1-1/+1
(This used to be commit 15efbbd2fea9cba819a88644a151cb872377621a)
2001-06-06Indent dodgy function prototype to avoid make proto picking it up andTim Potter1-1/+1
causing mayhem throughout the tree. (This used to be commit 369c911b446c311d4a5c8b4fddfe7fbffffefeba)
2001-06-05don't use c++ style commentsAndrew Tridgell1-1/+1
(This used to be commit dbb770ecc6dbbc4c38f31fc6b9747e0d8bc6e155)
2001-06-05fixed solaris compilation error (don't add to a void*)Andrew Tridgell1-2/+2
(This used to be commit f3c70e4248814e545a9ff64402cbd11020b159de)
2001-06-04use LDSHFLAGS not -shared in several placesAndrew Tridgell2-2/+2
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
2001-06-04More compile fixups for winbind portability.Tim Potter2-3/+7
(This used to be commit 086f332bb11ff0b2474554f81ef257e6a444a5cc)
2001-06-04Compile fix for solaris.Tim Potter1-7/+5
Fixed some compiler warnings. (This used to be commit b44d3f912c346e00f41a4ff59877adad3b9c3bb0)
2001-05-22Try to fix build by adding autoconf tests for pam headers.Jeremy Allison1-0/+2
Jeremy. (This used to be commit d52bc4d219bd07e656986e7754ea6e238c626d77)
2001-05-17Fixes to get pam_auth() functionality working again.Tim Potter1-36/+13
(This used to be commit 083b74c743f0026693fa0fbe665ed08a3ac706b8)
2001-05-15Zero-fill struct hostent.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 86557d633648f279e6ceda4da38801889ca4ed95)
2001-05-15Fixed glibc crash problems with libnss_wins.soJeremy Allison1-4/+44
Jeremy. (This used to be commit c38a465bef91bc54cd3f3ce81e5a9c818f429801)
2001-05-15Memory leak fixes from insure.Tim Potter2-10/+5
(This used to be commit 03b1cab9a80264f0c940c45d0557ef7efe685095)
2001-05-14Compile fixes for dynamic samr_query_userinfo() stuff.Tim Potter5-34/+14
(This used to be commit a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7)
2001-05-10Use sid_peek_rid() instead of sid_split_rid().Tim Potter1-3/+2
(This used to be commit 0e03209af6f70c3c0c52072fe904ba5750676b63)
2001-05-09Fixes from nsswitch testsuite. Lots of stuff works much better now. (-:Tim Potter3-6/+9
(This used to be commit 014859b62b31ceff5b5ca3d1699792e362c77a85)
2001-05-08The substitution of %U and %D in the 'template homedir' is nowdoneTim Potter1-10/+6
by lp_string() calling standard_sub_basic(). (This used to be commit 011d45943594a7a4091101b1eec930d13f0a9d12)
2001-05-08Added S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOsTim Potter1-0/+10
(SCO). (This used to be commit d761a7deb3696fc0742fb349868317f42825290e)
2001-05-08Misc fixes to get winbindd working. We can now do a 'getent passwd'Tim Potter4-17/+88
and 'getent group' and have most things working. (This used to be commit a7728bfa52291ec3149fbb704d7b30689af83e7c)
2001-05-07OK so I couldn't be as clever as I wanted to be with winbindd_glue.cTim Potter4-82/+79
so all the glue functions are prefixed with wb_ to avoid conflicts with the old rpc_client stuff which is still a dependency of smbd/nmbd. (This used to be commit 873e672b90e85e092102e10966e9f93f4fa6814f)
2001-05-07Ignore *.po files.Tim Potter1-0/+1
(This used to be commit f8c83ce28b01ffd188dd10f0c731defaacb0fb45)
2001-05-07iAdditional files for winbind merge.Tim Potter4-0/+852
(This used to be commit 38ab3b31b5dc39fb59f224b399bb9c2269f1c933)
2001-05-07Preliminary merge of winbind into HEAD. Note that this compiles and linksTim Potter12-1634/+2686
but I haven't actually run it yet so it probably doesn't work. (-: (This used to be commit 59f95416b66db6df05289bde224de29c721978e5)
2001-05-04Merge from TNG branch.Tim Potter1-57/+183
(This used to be commit 1e7b1c71b9c409859bcf0aeb3d5785acc4aee027)
2001-04-25added solaris wrapper from tngAndrew Tridgell1-0/+279
(This used to be commit d854d01d1197300f637eb38c243f8b0b80cf24ba)
2001-04-25merge some of the nsswitch code from tng to headAndrew Tridgell4-267/+700
the libnss_winbind.so from head now works with the winbindd from tng (This used to be commit 67ccfd2826548a6ca22562f9fb3ae156a57bd7db)
2001-04-25merge from 2_2Andrew Tridgell1-3/+2
(This used to be commit b9137b613dc8cb45cbebfc6e57e20fde0517347a)
2001-04-13Merge of Andrew's changes in 2.2.Jeremy Allison1-1/+9
Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-08Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison6-27/+27
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-04-04Fix for broken RelientUNIX.Jeremy Allison1-0/+10
Jeremy. (This used to be commit 6808ec0d471d8b436506bbd7b9db67c28832be76)
2001-03-20Fix for crash when doing name lookup with a quoted string. Part ofJeremy Allison1-1/+1
lookup_name was expecting to be able to write to the string. Changed lookup_name to use const. Jeremy. (This used to be commit 80c18d88491f1148ade623e81c33f84ba4f952f3)
2001-01-15Changes from APPLIANCE_HEAD:David O'Neill1-2/+9
source/rpc_parse/parse_lsa.c - off by one unistr length bug in init_lsa_trans_name() source/lib/util_sid.c - resolve more BUILTIN sid values to names. source/nsswitch/wb_client.c - fix typo in debug message - set errno on error so we don't get bogus value from last failure. source/rpc_server/srv_spoolss_nt.c - add debug to track number of open printer handles for ease of tracking handle leaks in the future. source/rpc_server/srv_lsa.c - fix off-by-one string bug. This was preventing NT from displaying names for well-know SIDs in printer permissions dialog. (This used to be commit 59229b9025cff54cbdd05e374616ffbf9c6fee33)
2001-01-11Changes from APPLIANCE_HEAD:David O'Neill1-0/+1
source/nsswitch/winbindd_idmap.c - convert tdb key to unix code-page when generating (This used to be commit 3b9e68d6806b039d284533b64f9c41c9d4790a8b)
2001-01-11Changes from APPLIANCE_HEAD:David O'Neill1-1/+11
testsuite/printing/psec.c - Use lock directory from smb.conf parameter when peeking at the ntdrivers.tdb file. source/rpc_parse/parse_sec.c - fix typo in debug message source/script/installbin.sh - create private directory as part of 'make install'. source/nsswitch/winbindd_cache.c source/nsswitch/winbindd_idmap.c source/passdb/secrets.c source/smbd/connection.c - always convert tdb key to unix code-page when generating. source/printing/nt_printing.c - always convert tdb key to unix code-page when generating. - don't prepend path to a filename that is NULL in add_a_printer_driver_3(). source/rpc_server/srv_spoolss_nt.c - always convert tdb key to unix code-page when generating. - don't prepend server name to a path/filename that is NULL in the fill_printer_driver_info functions. source/printing/printing.c - always convert tdb key to unix code-page when generating. - move access check for print_queue_purge() outside of job delete loop. source/smbd/unix_acls.c - fix for setting ACLs (this got missed earlier) source/lib/messages.c - trivial sync with appliance_head (This used to be commit 376601d17d53ef7bfaafa576bd770e554516e808)
2001-01-04Changes from APPLIANCE_HEAD:David O'Neill1-1/+2
source/Makefile.in - changes to ctags and etags rules that somehow got lost along the way. source/include/proto.h - make proto source/smbd/sec_ctx.c source/smbd/password.c - merge debugs for debugging user groups and NT token stuff. source/lib/util_str.c - capitalise domain name returned from parse_domain_user() source/nsswitch/wb_client.c - fix broken conditional in debug statement. source/include/rpc_secdes.h source/include/rpc_spoolss.h source/printing/nt_printing.c source/lib/util_seaccess.c - fix printer permission bugs related to ACE masks for printers. This adds mapping of generic access rights to object specific rights for NT printers. Still need to work out whether or not to ignore ACEs with certain flags set, though. See comments in util_seaccess.c:check_ace() for details. source/printing/nt_printing.c source/printing/printing.c - use PRINTER_ACCESS_ADMINISTER instead of JOB_ACCESS_ADMINISTER until we sort out printer/printjob permission stuff. (This used to be commit 1dba9c5cd1e6389734c648f6903abcb7c8d5b2f0)
2000-10-25Fix for uidtoname not returning DOMAIN\name but just name. This causedJeremy Allison1-2/+9
printer_access_check to break in a domain environment. Jeremy. (This used to be commit 0fc1a461504f87c145f5f91189bd767989c488f2)
2000-10-13Fixed merging mess.Tim Potter1-1/+22
(This used to be commit 7b8c03de1fd1461d4c65c0d7100f9519e08d1b24)
2000-10-13Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison1-196/+51
falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Also changed GETDC to query 1C name rather than 1b name as only the PDC registers 1b. Jeremy. (This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)
2000-10-11Use sys_setgroups - systems with broken getgroups need this.Jeremy Allison1-1/+1
Jeremy. (This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)
2000-10-11Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()Christopher R. Hertel1-4/+4
when looking up the WINS server address. Please *don't* use lp_wins_server() any more! The wins_srv_ip() function has the following features: - If the WINS server was entered as a DNS name then the translation to an IP address will already have taken place. We used to do this every time a call to the WINS server was made. Ick. - The return value of wins_srv_ip() is a struct in_addr. Ready to go. - When WINS failover is fully implemented, you'll be able to enter a colon- separated list of WINS servers via the WINS SERVER parameter. Using lp_wins_server() directly will fail if this syntax is used. Chris -)----- (This used to be commit 56be7c2a49a8a918318a70843fff4e89ec10d0d3)
2000-10-11Renamed WINBINDD_INITGROUPS constant to WINBINDD_GETGROUPS.Tim Potter3-3/+3
(This used to be commit 5f3cf2eb78bfa6fb00890d449d38e9f13964712c)
2000-10-11Modified initgroups to provide a get groups a user is a member ofTim Potter2-7/+166
functionality. This is much faster than inverting the group database. Added client side command for this to wbinfo. (This used to be commit e87b2d3d1fb84311d83d21a76900f994e4ff71dd)
2000-10-10Added debug so we can see how winbindd converts SIDS.Jeremy Allison1-13/+40
Jeremy. (This used to be commit 6696bf203c90dc20c00b47737f5ea1d9b8e23d75)