Displaying 14 results from an estimated 14 matches for "strchr_m".
2015 Feb 02
1
Can login with a bogus username which ends with a "/" or a "\"
...me ( up to the "/" or "\" ) and then username is empty, allowing a bogus user to authenticate and calls cli_session_setup_guest() to log in anonymously. This is done in cli_session_setup():
/* allow for workgroups as part of the username */
if ((p=strchr_m(user2,'\\')) || (p=strchr_m(user2,'/')) ||
(p=strchr_m(user2,*lp_winbind_separator()))) {
*p = 0;
user = p+1;
if (!strupper_m(user2)) {...
2004 Jul 15
1
Slowdown due to change in DC lookup from 3.0.1 to 3.0.2a
...n, NULL, dc_name, &dc_ip) ) {
DEBUG(3,("enumerate_domain_trusts: can't locate a DC for domain %s\n",
domain));
The function get_dc_name was changed in libsmb/namequery_dc.c (1.5 to 1.6 in
MAIN) from:
if ( (our_domain && lp_security()==SEC_ADS) || strchr_m(domain, '.') ) {
ret = ads_dc_name(domain, &dc_ip, srv_name);
To:
if ( (our_domain && lp_security()==SEC_ADS) || realm ) {
ret = ads_dc_name(domain, realm, &dc_ip, srv_name);
It appears before ads_dc_name () was being called before because the condition
st...
2004 Jul 06
3
bug in parsing the 'username map' in 3.0.5pre1
Hi Jerry et al,
the parsing of the 'username map' file seems to be broken in 3.0.5pre1 and
a few earlier releases. The '!' at the beginning of a line is ignored.
Something like
!lp = lp
!chbeyer = chbeyer
!guest = guest
nobody = *
doesn't work anymore :-(
from the man page:
[ snip ]
If any line begins with an '!' then the processing will
stop
2004 May 26
2
duplicate domains in browse list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i recently upgraded some of my servers from 3.0.2a to 3.0.4
after the upgrade my browselist shows duplicate entries for the domains.
one domains is managed by a samba PDC(providing WINS too) and two samba
BDC's.
the other domains are managed by one samba PDC.
'smbclient -N -L <WINS_SERVER>' shows:
- ---
Workgroup
2003 Oct 16
0
Cann't get Samba 3.0.0 installed on a SuSE 8.2
...amba/source/smbwrapper -
I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -I/usr/kerberos/include -I/root/Desktop/samba/source
LIBS = -lcrypt -lresolv -lnsl -ldl
LDSHFLAGS = -shared
LDFLAGS =
Generating smbd/build_options.c
...
Compiling lib/util_str.c
(1)
lib/util_str.c: In function `strchr_m':
lib/util_str.c:1196: warning: return discards qualifiers from pointer target
type
lib/util_str.c: In function `strrchr_m':
lib/util_str.c:1244: warning: return discards qualifiers from pointer target
type
Compiling lib/clobber.c
...
Compiling tdb/tdbutil.c
(2)
tdb/tdbutil.c: In function `...
2006 Jun 19
2
3.0.23 + afsacl build problem
...passing arg 3 of `lookup_sid' from
incompatible pointer type
modules/vfs_afsacl.c:145: warning: passing arg 4 of `lookup_sid' from
incompatible pointer type
modules/vfs_afsacl.c:145: error: too few arguments to function `lookup_sid'
modules/vfs_afsacl.c:153: warning: passing arg 2 of `strchr_m' makes
integer from pointer without a cast
modules/vfs_afsacl.c:158: error: `LOOKUP_NAME_FULL' undeclared (first
use in this function)
modules/vfs_afsacl.c:158: error: (Each undeclared identifier is reported
only once
modules/vfs_afsacl.c:158: error: for each function it appears in.)
mod...
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers.
I just upgraded to samba-3.0.23 and I've noticed an alarming issue with
respect to my configuration.
I've been using the built-in keytab management and it looks like the updated
code no longer creates the userPrincipal in Active Directory.
Whether this is an issue for others or not, it would be nice to have
2020 Oct 13
0
Lookup sid with libsmbclient (invoked from c# on mono)
...mdline_auth_info_smb_encrypt(0x55591473b880, 0x55591473b670, 0x55591474bb40, 0) = 0
20582 cli_set_timeout(0x555914735d40, 10000, 0x55591474bb40, 0) = 0x4e20
20582 dcerpc_binding_get_transport(0x555914732f30, 0, 0x55591474b520, 0) = 1
20582 strchr_m(0x55591473bcc0, 59, 0x55591474b520, 0) = 0
20582 strdup("lookupnames user1") = 0x555914733450
20582 popt_get_cmdline_auth_info(0x555914733450, 0x55591473bcc0, 18, 48)...
2007 Jun 06
3
string overflow in rpcclient add "printer" driver command
Hello,
I get the folowing error msg in rpcclient -c 'adddriver' command:
ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver "Windows NT x86" "My Driver Name 001:aaa]
Printer Driver My Driver Name 001 successfully installed.
My command is like this:
rpcclient MYSRV -s /etc/samba/smb.conf -A auth.txt -c 'adddriver "Windows NT x86" "My
2001 Oct 23
3
smbclient works, smbmount does not
Hi there,
after browsing the mailing list archives for several hour I still couldn't
find an answer to my problem, although it for sure sounds as if many people
posted the same problem. Yet, none of the threads dealing with problems like
these matched my problem, so I have to start a new thread on my own.
This is my system environment:
Linux machine:
- Mandrake Linux 8.1
- samba-2.2.1a
2007 Aug 27
1
smbd and pdbedit segfault
...f () from
/lib/tls/i686/cmov/libc.so.6
dies here with the 'bad username' (ktcccarthy) as the
argument
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211786688 (LWP 6870)]
0x080addd2 in strchr_m (src=0x85c8978 "\\\\%N\\%U",
c=37 '%') at lib/util_str.c:1298
1298 {
Help!
Marc
------------------------
This works :
egm-server:/var/log/samba# pdbedit lpinkey
lpinkley:1002:Lorrie Pinkey
This does not (the bad user) :
eqm-server:/var/log/samba# pdbedi...
2004 Oct 21
0
compile errors samba 3.0.7 vfs
..._msdfs.po(.text+0x1d8): undefined reference to
`DEBUGLEVEL_CLASS_ISSET'
modules/vfs_expand_msdfs.po(.text+0x1fc): undefined reference to `dbghdr'
modules/vfs_expand_msdfs.po(.text+0x213): undefined reference to `dbgtext'
modules/vfs_expand_msdfs.po(.text+0x221): undefined reference to `strchr_m'
modules/vfs_expand_msdfs.po(.text+0x230): undefined reference to
`DEBUGLEVEL_CLASS'
modules/vfs_expand_msdfs.po(.text+0x23e): undefined reference to
`DEBUGLEVEL_CLASS_ISSET'
modules/vfs_expand_msdfs.po(.text+0x266): undefined reference to `dbghdr'
modules/vfs_expand_msdfs.po(.tex...
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Typical example:
Here is some search & export for libsmbclient:
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open_noauth_transport
<nothing>
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open
U cli_rpc_pipe_open_noauth
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0
2003 Dec 01
0
No subject
...problems I've found
compiling samba-head.
Using ./configure all seems correct and both nlibnss_winbind.so
and pam_winbind.so are built correctly. The problem is that
they don't include reference to libsmbclient.so so when
I try to use getent group I receive an unreferenced symbol
error for strchr_m().
I have solved the problem relinking the library from
.o and .po objects
Next problem is using winbindd.
I can't authenticate users versus an NT4 PDC using
security = domain option.
I have registered the machine into the Domain
I have used getent passwd and group and all seems
correct.
Also...