Файловый менеджер - Редактировать - /var/www/html/libntlm0.zip
Ðазад
PK ! �a��Y Y READMEnu �[��� Libntlm README -- important introductory notes Copyright (C) 2002-2020 Simon Josefsson Copyright (C) 1999 Grant Edwards See the end for copying conditions. This directory contains sources for a library which provides routines to manipulate the structures used for the client end of Microsoft NTLM authentication. This code was initially taken mostly from the Samba project and was initially intended for use with Microsoft Exchange Server when it is configured to require NTLM authentication for clients of it's IMAP server. Today, libntlm contain re-written code, so that the license is now LGPL instead of the GPL that would be inherited from the Samba files. If you need help to use Libntlm, or wish to help others, you are invited to join our mailing list libntlm at nongnu.org, see <http://lists.nongnu.org/mailman/listinfo/libntlm>. For more information, see <http://josefsson.org/libntlm/> and <http://savannah.nongnu.org/projects/libntlm/>. Warning ------- I don't consider NTLM a secure authentication protocol -- it uses MD4 and single-DES. MD4 has been broken, and single-DES have a too small key size to be considered secure against brute-force attacks. You should only use libntlm for interoperability purposes, not to achieve any kind of security. Building -------- Build instructions are in INSTALL. Typically, the following is sufficient: $ ./configure $ make $ make check $ make install Usage ----- The application program must convert these structures to/from base64 which is used to transfer data for IMAP authentication. For example usage see the sources for the mutt MUA or the fetchmail package. In general the usage is something like shown below (no, I don't know if this code even compiles, but you get the idea hopefully): #include <ntlm.h> extern char *seqTag; /* IMAP sequence number */ int imap_auth_ntlm(char *user, char *domain, char *pass) { tSmbNtlmAuthRequest request; tSmbNtlmAuthChallenge challenge; tSmbNtlmAuthResponse response; char buffer[512]; char tmpstr[32]; writeToServer("%s AUTHENTICATE NTLM\r\n",seqTag); readFromServer(buffer) /* buffer should be "+", but we won't show code to check */ /* * prepare the request, convert to base64, and send it to * the server. My server didn't care about domain, and NULL * worked fine. */ buildSmbNtlmAuthRequest(&request,user,domain); convertToBase64(buffer, &request, SmbLength(&request)); writeToServer("%s\r\n",buffer); /* read challange data from server, convert from base64 */ readFromServer(buffer); /* buffer should contain the string "+ [base 64 data]" */ convertFromBase64(&challenge, buffer+2); /* prepare response, convert to base64, send to server */ buildSmbNtlmAuthResponse(&challenge, &response, user, pass); convertToBase64(buffer,&response,SmbLength(&response)); writeToServer("%s\r\n",buffer); /* read line from server, it should be "[seq] OK blah blah blah" */ readFromServer(buffer); sprintf(tmpstr,"%s OK",seqTag); if (strncmp(buffer,tmpstr,strlen(tmpstr))) { /* login failed */ return -1; } return 0; } ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. PK ! ��� copyrightnu �[��� Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libntlm Upstream-Contact: Simon Josefsson <simon@josefsson.org> Source: https://www.nongnu.org/libntlm/ Files: * Copyright: Copyright (C) 2005-2018 Simon Josefsson Copyright (C) 1998-1999 Brian Bruns Copyright (C) 2004 Frediano Ziglio Copyright (C) 2009-2013 Free Software Foundation, Inc. License: LGPL-2+ The library has two source code files. Quoting smbencrypt.c: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License * as published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301, USA. . Quoting smbutil.c, ntlm.h and ntlm.h.in: . * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this file; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301, USA. . Some files (gl/* build-aux/* GNUmakefile maint.mk) are copied from gnulib, and for them copyright is normally held by Free Software Foundation, Inc. For example gl/stddef.h: . This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program; if not, see <https://www.gnu.org/licenses/>. */ . On Debian GNU/Linux systems, the complete text of the LGPL-2 and LGPL-2.1 licenses can be found in /usr/share/common-licenses/LGPL-2 and /usr/share/common-licenses/LGPL-2.1. . Some shared files from autoconf, automake, libtool, gnulib etc have different licenses. PK ! x�Y� � THANKSnu �[��� Libntlm THANKS -- acknowledgements Copyright (C) 2002-2020 Simon Josefsson See the end for copying conditions. Much of the code was originally written by Andrew Tridgell for the Samba project. Frediano Ziglio contributed rewritten files, so the library could be released under LGPL instead of GPL. The MD4 and DES implementation was replaced by the Gnulib LGPL copy, contributed by Simon Josefsson. Bug reports, patches and/or suggestions were also received from: David Leonard <davidl@vintela.com> Matthias Andree <matthias.andree@gmx.de> Pavel Fedin <fedin@matek.ru> Andrej Kacian <ticho@gentoo.org> Romain GEISSLER <romain.geissler@amadeus.com> Kirin Cedric Buissart ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. PK ! 0�B� � changelog.Debian.gznu �[��� � �V�r�6}�W�L�4EP�.lө'M�:��q���DBj@Ў��^$;Q�3�X����, �JyY�3MH��<[I�#4�⪸yY�R4�����x^�g��o�p����(����F]��Y��0̔�s8�L�̖�|�� ��kH�I�f�Ք�q���X}Ł5^���s��14xZc�����\�v"¬�sQ���k���O.���0i[��ƊcHbX4�K(��<���^�I��\��q!�uG�a\YD;\����$���]3��ካ~q��i�!�1q�z �n�c�ԅ���4ÊKVqp8�r�� ��K`q�����ѧ�������6��Ӧ9:��*p��oL�;� w�A�N�� 9���6\nI�k�<����&!E:� ����"�`-$X��:���<�y2ۛ5=��~��`_��"