Samba v2.2.12 NTLM versions?

View: New views
6 Messages — Rating Filter:   Alert me  

Samba v2.2.12 NTLM versions?

by PhilH-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Isn't gcc available for your system?

No, I'm 99% sure there isn't a gcc  on MP-RAS.  I've looked at
 building gcc as well, but then run into more problems with that; config.guess fails trying to run a utility that doesn't exist.
 
 Can you point me at the code in Samba 3 that does the ntlmv2
encryption?  Maybe I can patch this into the v2 code?

Any other suggestions?

Phil
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: Samba v2.2.12 NTLM versions?

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 07, 2008 at 10:01:09AM +0100, PhilH wrote:
>  Can you point me at the code in Samba 3 that does the ntlmv2
> encryption?  Maybe I can patch this into the v2 code?

In 3.2 most of the cryto routines are in the files
libsmb/ntlmssp.c and libsmb/smbencrypt.c.

What is it that your compiler breaks over? Maybe it might be
easier to fix those for your environment that pushing modern
crypto into 2.2.

For example the named initializers should quite easily be
revertable for you.

Volker


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

attachment0 (196 bytes) Download Attachment

Parent Message unknown Re: Samba v2.2.12 NTLM versions?

by Horder, Philip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



>> It then fails the c compiler with:
>> c99 structure initializer are not supported
>
>Ok. We make use of those for example at the bottom of
>librpc/gen_ndr/ndr_wkssvc.c. It is pretty straightforward to
>convert those to non-named initializers and remove the
>configure check. If that is the only thing your compiler can
>not do, this is boring but definitely easier than getting
>2.2 up to speed with current Windows versions.
Ok, I'll start compiling, and see what falls over.
>> Any suggestions on;
>> 1. getting configure to find grep, awk, nawk, etc.
>
>I'm not aware that we actually depend on those.
Needed to patch Makefile to set "AWK=nawk"

>If you have autotools around, you might want to comment out...
No such luck. So I went for it. The following is the result. As you can
see it didn't get very far, and I don't understand why. For some reason,
Make complains that I haven't run configure, and also complains about
"hostname: not found". Then it completely dies trying to compile
dynconfig.h. I've looked at most of these errors & warnings, and can't
find a single thing wrong with the source code at the lines mentioned.
It looks like there is still some configuration stuff missing, but I
don't know what. Here's the compiler output. Any suggestions, 'cos this
is looking pretty hopeless to me, as I haven't even got to the c99
initialiser errors yet?! phil.
------------------------------------------------------------------------
---------------------------------------------------------------------
4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>make
Using FLAGS = -O -D_SAMBA_BUILD_=3
-I/home/laiptc6/samba-3.0.28a/source/popt
-I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
-I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
-I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
-D_SAMBA_BUILD_=3
PICFLAG = -fPIE
LIBS = -lresolv -lnsl
LDFLAGS = -pie
DYNEXP =
LDSHFLAGS = shared-libraries-disabled
SHLIBEXT = shared_libraries_disabled
SONAMEFLAG = shared-libraries-disabled
Building include/proto.h
creating /home/laiptc6/samba-3.0.28a/source/include/proto.h
Building include/build_env.h
UX:sh (build_env.sh): ERROR: hostname: not found
creating /home/laiptc6/samba-3.0.28a/source/nsswitch/winbindd_proto.h
creating /home/laiptc6/samba-3.0.28a/source/web/swat_proto.h
creating /home/laiptc6/samba-3.0.28a/source/client/client_proto.h
creating /home/laiptc6/samba-3.0.28a/source/utils/net_proto.h
creating /home/laiptc6/samba-3.0.28a/source/utils/ntlm_auth_proto.h
WARNING: you need to run ./configure
WARNING: you need to run ./config.status
Compiling dynconfig.c
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-98, NCR Corporation
(c) Copyright 1987-98, MetaWare Incorporated
E "/usr/include/arpa/inet.h",L66/C19(#164): in_addr_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L40/C27.
E "/usr/include/arpa/inet.h",L67/C19(#164): in_port_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L39/C28.
E "/usr/include/arpa/inet.h",L68/C1(#164): in_addr_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L40/C27.
E "/usr/include/arpa/inet.h",L69/C1(#164): in_port_t
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/netinet/in.h",L39/C28.
w "/usr/include/sys/bitypes.h",L82/C1(#31): Identifier missing in
declaration.
E "/usr/include/sys/bitypes.h",L87/C16(#95): short: short is superfluous
here.
w "/usr/include/sys/bitypes.h",L87/C1(#31): Identifier missing in
declaration. E "/usr/include/sys/bitypes.h",L88/C15: (syntactic)
unexpected symbol:'char'
REPAIR: ';' was inserted before
'char'@"/usr/include/sys/bitypes.h",L88/C15 <mailto:'char'@>  E
"/usr/include/rpc/auth.h",L80/C11: (syntactic) unexpected
symbol:'<IDENTIFIER>':high
REPAIR: No_specifiers@"/usr/include/rpc/auth.h",L80/C3
<mailto:No_specifiers@>  through ';'@"/usr/include/rpc/auth.h",L80/C15
was replaced with '#pragma'
w (#657): (info) How referenced files were included:
| File /usr/include/netinet/in.h from ./lib/replace/system/network.h
from include/includes.h from
/home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/arpa/inet.h from ./lib/replace/system/network.h from
include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/sys/bitypes.h from /usr/include/netdb.h from
./lib/replace/system/network.h from include/includes.h from
/home/laiptc6/samba-3.0.28a/source/dynconfig.c.
| File /usr/include/rpc/auth.h from /usr/include/rpc/rpc.h from
include/includes.h from /home/laiptc6/samba-3.0.28a/source/dynconfig.c.
7 user errors 3 warnings
The following command failed:
cc -Xc -D__EXTENSIONS__ -O -D_SAMBA_BUILD_=3
-I/home/laiptc6/samba-3.0.28a/source/popt
-I/home/laiptc6/samba-3.0.28a/source/iniparser/src -Iinclude -I./include
-I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns
-I./librpc -DHAVE_CONFIG_H -I/home/laiptc6/samba-3.0.28a/source/lib
-D_SAMBA_BUILD_=3 -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DSBINDIR="/usr/local/samba/sbin" -DBINDIR="/usr/local/samba/bin"
-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
-DSWATDIR="/usr/local/samba/swat" -DLOCKDIR="/usr/local/samba/var/locks"
-DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib"
-DLOGFILEBASE="/usr/local/samba/var"
-DSHLIBEXT="shared_libraries_disabled"
-DCONFIGDIR="/usr/local/samba/lib"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
-DPRIVATE_DIR="/usr/local/samba/private" -fPIE -c
/home/laiptc6/samba-3.0.28a/source/dynconfig.c -o dynconfig.o
*** Error code 7 (bu21) make: fatal error.
4980-laiptc6:/home/laiptc6/samba-3.0.28a/source>


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: Samba v2.2.12 NTLM versions?

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jul 13, 2008 at 03:41:36PM -0400, Horder, Philip wrote:

> >I'm not aware that we actually depend on those.
> Needed to patch Makefile to set "AWK=nawk"
>
> >If you have autotools around, you might want to comment out...
> No such luck. So I went for it. The following is the result. As you can
> see it didn't get very far, and I don't understand why. For some reason,
> Make complains that I haven't run configure, and also complains about
> "hostname: not found". Then it completely dies trying to compile
> dynconfig.h. I've looked at most of these errors & warnings, and can't
> find a single thing wrong with the source code at the lines mentioned.
> It looks like there is still some configuration stuff missing, but I
> don't know what. Here's the compiler output. Any suggestions, 'cos this
> is looking pretty hopeless to me, as I haven't even got to the c99
> initialiser errors yet?! phil.
Well, without good C knowledge you're probably a bit lost
then. Sorry for pointing you at this...

Volker


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

attachment0 (196 bytes) Download Attachment

RE: Samba v2.2.12 NTLM versions?

by Horder, Philip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Well, without good C knowledge you're probably a bit lost then
 
Apart from the software engineering degree, 18 years in the industry, and 10 years C & C++ experience.
It seems that what I'm lacking here is experience with the oh-so-clever configuration scripts used by the Samba build system.
 
Thanks for your time Volker, but I'm going to have to give up, as I can't afford to spend weeks picking through the source and header hierarchies.
 
phil
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: Samba v2.2.12 NTLM versions?

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 14, 2008 at 05:46:57AM -0400, Horder, Philip wrote:

> > Well, without good C knowledge you're probably a bit lost then
>  
> Apart from the software engineering degree, 18 years in
> the industry, and 10 years C & C++ experience.
> It seems that what I'm lacking here is experience with the
> oh-so-clever configuration scripts used by the Samba build
> system.
>  
> Thanks for your time Volker, but I'm going to have to give
> up, as I can't afford to spend weeks picking through the
> source and header hierarchies.
Again, I can only apologize for wasting your time with
giving you the hint to try Samba 3.

I do believe that we can make Samba 3 run on almost every
platform that is Posixy, but it takes time going through the
indiviual compile problems.

Volker


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

attachment0 (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price