summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed some unused code from the recent cleanup.Tim Potter2001-10-122-291/+2
|
* Got the rest of the group functions working. Did some reformatting (manTim Potter2001-10-103-68/+37
| | | | | | | | | | | | | | | what was I thinking with those 4 character tabs?) We now pass our winbindd test suite again! Still to do: - talloc_ctx on a per winbindd request basis not per connection - clean up old crap we don't use any more - test against multiple BDCs (I know this isn't going to work - group/user handles have to be made against the same DC the domain and basic handles are. - implement network and dc failure recovery
* Implemented sam group handle stuff. getent group now works.Tim Potter2001-10-096-110/+208
|
* More work on winbindd connection rewrite:Tim Potter2001-10-085-179/+353
| | | | | | | | | - implemented some of the sam related connection manager routines - fill in group id and gecos fields for getpwnam/getpwuid routines - convert querydispinfo to cm - getent passwd now works Now for the group related routines...
* This is the start of a bit of a rewrite of winbindd's connection handling.Tim Potter2001-10-059-380/+588
| | | | | | | | | | | I've wrapped up all the decisions about managing, making and closing connections into a connection manager in nsswitch/winbindd_cm.c. It's rather incomplete at the moment - only querying basic user info works at the moment (i.e finger -m DOMAIN/user) and everything else is broken. Jeremy, please take a look and I'll start moving across the rest of winbindd to this new system.
* fix some possible memleaks and not tested reallocs spotted by Andreas MoroderSimo Sorce2001-10-031-5/+12
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-022-6/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-1714-68/+51
|
* Some patches to authentication:Tim Potter2001-09-121-4/+4
| | | | | | | | | - the usersupplied_info now contains a smb_username (as it comes across on the wire) and a unix_username (after being passed through mapping functions) - when doing security={server,domain} use the smb_username, otherwise use the unix_username
* convert more code to use XFILEAndrew Tridgell2001-09-101-6/+0
|
* more static/dead fnsAndrew Tridgell2001-09-102-11/+2
|
* kill a dead fn and make a local one staticAndrew Tridgell2001-09-102-80/+4
|
* more warning fixes on solarisAndrew Tridgell2001-09-055-6/+10
|
* fixed a bunch of compilation errors on Solaris, mostly people getting ↵Andrew Tridgell2001-09-056-69/+99
| | | | NSS_STATUS and WINBINDD error codes mixed up
* don't do pointer arithmetic on void* (some compilers can't do it)Andrew Tridgell2001-09-041-1/+1
|
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-047-104/+94
| | | | the client code still needs some work
* merge from 2.2Gerald Carter2001-08-301-1/+1
|
* merge from APPLIANCE_TNGGerald Carter2001-08-301-0/+1
|
* merge from APPLIANCE_TNGGerald Carter2001-08-301-43/+73
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-276-33/+33
|
* get rid of compiler warningsHerb Lewis2001-08-242-3/+4
|
* Make domain_client_validate return a status code instead of a boolean.Tim Potter2001-08-241-10/+10
|
* Added copyright for me and AB.Tim Potter2001-08-231-0/+2
|
* Added another authentication interface to winbindd. The Challenge ResponseTim Potter2001-08-226-26/+210
| | | | | | Authentication Protocol (CRAP) takes a tuple of (username, random challenge, encrypted lm password, encrypted nt password) where the passwords are encrypted with the random challenge ala ntlmssp.
* More Realloc fixes.Jeremy Allison2001-08-182-4/+13
| | | | Jeremy.
* More Realloc fixes.Jeremy Allison2001-08-181-7/+17
| | | | Jeremy.
* Fixed up 'orrible formatting.Tim Potter2001-08-131-21/+21
|
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-124-12/+24
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* This patch does a number of things, mostly smaller than they look :-)Andrew Bartlett2001-08-121-1/+14
| | | | | | | | | | | | | | | In particuar, it moves the domain_client_validate stuff out of auth_domain.c to somwhere where they (I hope) they can be shared with winbind better. (This may need some work) The main purpose of this patch was however to improve some of the internal documentation and to correctly place become_root()/unbecome_root() calls within the code. Finally this patch moves some more of auth.c into other files, auth_unix.c in this case. Andrew Bartlett
* This is my 'Authentication Rewrite' version 1.01, mostly as submitted toAndrew Bartlett2001-08-031-8/+48
| | | | | | | | | | | | | | | | | | | | | | | | samba-technical a few weeks ago. The idea here is to standardize the checking of user names and passwords, thereby ensuring that all authtentications pass the same standards. The interface currently implemented in as nt_status = check_password(user_info, server_info) where user_info contains (mostly) the authentication data, and server_info contains things like the user-id they got, and their resolved user name. The current ugliness with the way the structures are created will be killed the next revision, when they will be created and malloced by creator functions. This patch also includes the first implementation of NTLMv2 in HEAD, but which needs some more testing. We also add a hack to allow plaintext passwords to be compared with smbpasswd, not the system password database. Finally, this patch probably reintroduces the PAM accounts bug we had in 2.2.0, I'll fix that once this hits the tree. (I've just finished testing it on a wide variety of platforms, so I want to get this patch in).
* Merge of change machine account password race fix from appliance branch.Tim Potter2001-07-251-1/+17
|
* a better test for unix domain socketsAndrew Tridgell2001-07-251-1/+1
|
* In wb_samr_query_dispinfo() pass back the 32-bit status code fromTim Potter2001-07-231-10/+10
| | | | cli_samr_query_dispinfo().
* Call cli_samr_lookup_rids() in bunches of < 1000 rids to avoid crashingTim Potter2001-07-231-8/+42
| | | | NT. Note this can be done completely anonymously.
* Merged across rewritten version of winbindd_kill_connections(). This nowTim Potter2001-07-191-22/+15
| | | | | | | | works much better with trusted domains whose DCs cannot be reached. I'm pretty impressed with how much faster winbindd is in HEAD rather than TNG. A lot fewer unecessary name lookups are performed and it feels a lot zippier now.
* the nss and pam modules in winbind don't have strchr_m() yet, so useAndrew Tridgell2001-07-186-11/+11
| | | | strchr() for the moment
* added winbind_exclude_domain() so smbd can tell the winbind clientAndrew Tridgell2001-07-101-0/+17
| | | | | code not to do lookups for a particular domain. This allows winbind to operate on a Samba PDC
* allow winbindd to run as non-root so we can test it more easilyAndrew Tridgell2001-07-082-9/+7
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-046-11/+11
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-044-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.
* fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell2001-06-251-1/+2
| | | | instead of a define
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-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
* Merge from appliance branch:Tim Potter2001-06-201-2/+8
| | | | | Don't call find_domain_from_name() from winbindd_kill_connections() as you get stuck in an infinite loop!
* Fixed typo in #ifndef at head of file.Tim Potter2001-06-071-2/+2
|
* Added comment about possible optimisation to winbindd_pam_auth()Tim Potter2001-06-071-0/+4
|
* Fixed bug in winbind_sid_to_gid() function.Tim Potter2001-06-071-1/+1
|
* Fix for cli_samr_connect() arg change.Tim Potter2001-06-061-1/+1
|
* Indent dodgy function prototype to avoid make proto picking it up andTim Potter2001-06-061-1/+1
| | | | causing mayhem throughout the tree.
* don't use c++ style commentsAndrew Tridgell2001-06-051-1/+1
|
* fixed solaris compilation error (don't add to a void*)Andrew Tridgell2001-06-051-2/+2
|