compiling kernel module

2015-03-03 Thread Erez D
hi

i have a rooted lenovo vibe x2. i want to compile a kernel module for it.

i did a 'make ARCH=arm CROSS_COMPILE=... M=subdir' and got my module.ko

when i insmod, i get: exec format error
and dmesg:
version magic '3.10.35 mod_unload modversions ARMv7 p2v8 ' should be
'3.10.35 SMP preempt mod_unload ARMv7 '

i tried playing with configuration, and got to '3.10.35 SMP preempt
mod_unload ARMv7 p2v8 '
however i can not loose the p2v8

this seems to come from: CONFIG_ARM_PATCH_PHYS_VIRT,if i comment out the
CONFIG_ARM_PATCH_PHYS_VIRT, it reenables it when i compile.

looking further i found:

Symbol: ARM_PATCH_PHYS_VIRT [=y]
Type  : boolean
Prompt: Patch physical to virtual translations at runtime
Defined at arch/arm/Kconfig:219
Depends on: !XIP_KERNEL [=n]  MMU [=y]  (!ARCH_REALVIEW [=n] ||
!SPARSEMEM [=n])
Selected by: ARCH_MXC [=n] || ARCH_PICOXCELL [=n] || ARCH_MULTIPLATFORM
[=y]  choice  MMU

i can not disable MMU, as it changes to armv5
disabling ARCH_MULTIPLATFORM  means i need to select a processor type
any of the 'ARM Ltd.' either doesn't compile or is ignored
and i do not know what the 'choice' is

i tried downloading source from lenovo.
they have instructions to compile with:
./mk x2ap n k

however i cannot find 'mk' anywhere, not in their tar, not in android sdk
nor ndk etc.
and can't find any specific config file.
compiling with their source gives the same magic '3.10.35 mod_unload
modversions ARMv7 p2v8 ' as the vanilla does

any idea anyone ?
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Help: OpenLdap bindRequest with NTLM authentication makes mailformed message.

2015-03-03 Thread Oleg Goldshmidt
Lev Olshvang lols...@012.net.il writes:

 Does anybody have example or can advice how to perform NTLM
 authentication of Linux client toward Microsoft AD service?

Eh, I know of cntlm proxy - is that an option? If not, maybe looking at
its code will help to some extent? 

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Help: OpenLdap bindRequest with NTLM authentication makes mailformed message.

2015-03-03 Thread Lev Olshvang


Hello Alll,


Does anybody have example or can advice how to perform NTLM 
authentication of Linux client toward Microsoft AD service?



I calledd ldap_ntlm_bind() to do the Job, but
Wireshark can not fully recognize these message and prints mailformed

And following
ldap_parse_ntlm_bind_result() returns with Authentication error.


Unfortunately these functions are not documented, perhaps I pass wrong 
parameters.



Actually I pass
ldap_ntlm_bind(ld, dn, LDAP_AUTH_NTLM_REQUEST, cred, NULL, NULL, msgidp);
I put password in cred structure and user parameter as part of dn string,
like user=NTDOMAIN\lev, cn=myhost,dn=com


Many thanks and Hag Sameah,

L.





___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il