winbind authentication
Hi, this problem applies to 2.2.4 and partly to head, too. I need to set a username when connecting to a Win2K server using winbind. The documentiation states "wbinfo -A user%password" would do the trick. However this doesn't work. For wbinfo in 2.2.4: - the "-A" option is documented, but isn't working. (--set-auth-user is the actual name of the command but this is undocumented) - secrets_init() isn't called so secrets.tdb isn't open. - the username variable instead of user is stored (which is user%password instead of user alone) The patch below makes it work for me. In head the same patch can be applied, with the exception of secrets_init() not being needed. ...Juergen --- nsswitch/wbinfo.origFri May 3 03:03:20 2002 +++ nsswitch/wbinfo.c Sat May 11 18:30:06 2002 @@ -592,9 +592,9 @@ password = ""; /* Store in secrets.tdb */ - - if (!secrets_store(SECRETS_AUTH_USER, username, - strlen(username) + 1) || + secrets_init(); + if (!secrets_store(SECRETS_AUTH_USER, user, + strlen(user) + 1) || !secrets_store(SECRETS_AUTH_DOMAIN, domain, strlen(domain) + 1) || !secrets_store(SECRETS_AUTH_PASSWORD, password, @@ -640,6 +640,7 @@ printf("\t-m\t\t\tlist trusted domains\n"); printf("\t-r user\t\t\tget user groups\n"); printf("\t-a user%%password\tauthenticate user\n"); + printf("\t-A user%%password\tstore user and password used by winbind (root only)\n"); printf("\t-p 'ping' winbindd to see if it is alive\n"); printf("\t--sequence\t\tshow sequence numbers of all domains\n"); } @@ -683,7 +684,7 @@ { "sequence", 0, POPT_ARG_NONE, 0, OPT_SEQUENCE }, { "user-groups", 'r', POPT_ARG_STRING, &string_arg, 'r' }, { "authenticate", 'a', POPT_ARG_STRING, &string_arg, 'a' }, - { "set-auth-user", 0, POPT_ARG_STRING, &string_arg, OPT_SET_AUTH_USER }, + { "set-auth-user", 'A', POPT_ARG_STRING, &string_arg, +OPT_SET_AUTH_USER }, { "ping", 'p', POPT_ARG_NONE, 0, 'p' }, { 0, 0, 0, 0 } };
Printing Problem with 2.2.4 and CUPS -- {2227a280-3aea-1069-a2de-08002b30309d} is not a valid printer name
Hi, I am trying to print with Windows XP and Samba 2.2.4 under RH-7.2 (cups-1.1.14) Sometimes (I know, this isn't helpfull) Windows XP can't connect to the printer (Name: hp2100new) , even can't show the queue by doublecliking on the printer. The printer itself is shown The error mesasage in samba is: barolo (192.168.3.1) connect to service IPC$ as user printeruser (uid=500, gid=100) (pid 12804) [2002/05/12 09:37:50, 3] smbd/sec_ctx.c:set_sec_ctx(313) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/05/12 09:37:50, 3] smbd/reply.c:reply_tcon_and_X(395) tconX service=ipc$ user=printeruser [2002/05/12 09:37:50, 3] smbd/process.c:process_smb(866) Transaction 58 of length 102 [2002/05/12 09:37:50, 3] smbd/process.c:switch_message(673) switch message SMBtconX (pid 12804) [2002/05/12 09:37:50, 3] smbd/sec_ctx.c:set_sec_ctx(313) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/05/12 09:37:50, 3] smbd/service.c:find_service(142) checking for home directory ::{2227a280-3aea-1069-a2de-08002b30309d} gave (NULL) [2002/05/12 09:37:50, 3] smbd/service.c:find_service(157) checking whether ::{2227a280-3aea-1069-a2de-08002b30309d} is a valid printer name... [2002/05/12 09:37:50, 0] printing/print_cups.c:cups_printername_ok(290) Unable to get printer status for ::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found [2002/05/12 09:37:50, 3] smbd/service.c:find_service(169) ::{2227a280-3aea-1069-a2de-08002b30309d} is not a valid printer name [2002/05/12 09:37:50, 3] smbd/service.c:find_service(211) find_service() failed to find service ::{2227a280-3aea-1069-a2de-08002b30309d} [2002/05/12 09:37:50, 0] smbd/service.c:make_connection(251) barolo (192.168.3.1) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d} [2002/05/12 09:37:50, 3] smbd/error.c:error_packet(106) error packet at smbd/reply.c(165) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME [2002/05/12 09:37:57, 3] smbd/process.c:process_smb(866) Transaction 59 of length 95 [2002/05/12 09:37:57, 3] smbd/process.c:switch_message(673) switch message SMBntcreateX (pid 12804) [2002/05/12 09:37:57, 3] smbd/sec_ctx.c:set_sec_ctx(313) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/05/12 09:37:57, 3] smbd/sec_ctx.c:set_sec_ctx(319) 7 user groups: 0 1 2 3 4 6 10 [2002/05/12 09:37:57, 3] smbd/nttrans.c:nt_open_pipe(559) nt_open_pipe: Known pipe srvsvc opening. [2002/05/12 09:37:57, 3] smbd/process.c:process_smb(866) Transaction 60 of length 140 [2002/05/12 09:37:57, 3] smbd/process.c:switch_message(673) switch message SMBwriteX (pid 12804) [2002/05/12 09:37:57, 3] smbd/sec_ctx.c:set_sec_ctx(313) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/05/12 09:37:57, 3] smbd/sec_ctx.c:set_sec_ctx(319) 7 user groups: 0 1 2 3 4 6 10 The error mesage from cups is: D [12/May/2002:09:37:50 +0200] AcceptClient() 3 from localhost.localdomain:631. D [12/May/2002:09:37:50 +0200] ReadClient() 3 POST / HTTP/1.1 E [12/May/2002:09:37:50 +0200] get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no \good! D [12/May/2002:09:37:50 +0200] Sending error: client-error-not-found D [12/May/2002:09:37:50 +0200] CloseClient() 3 D [12/May/2002:09:38:36 +0200] mallinfo: arena = 760512, used = 725032, free = 35480 D [12/May/2002:09:39:36 +0200] mallinfo: arena = 760512, used = 725032, free = 35480 When I switch back to 2.2.2 it works (same smb.conf, same PrinterDriver File) If you need further Information, let me know.. Greetings Hansjoerg -- Dr. Hansjörg Maurer itsystems Deutschland AG Linprunstr. 10 D-80335 Muenchen Ph/Fax +49 89 52 04 68-41/-59
RE: winbind authentication
Downloaded 2.2.4 yesterday and it without your patch it works for me: [noel@belly noel]$ wbinfo -a uk+nkelly%password plaintext password authentication succeeded error code was NT_STATUS_OK (0x0) challenge/response password authentication succeeded error code was NT_STATUS_OK (0x0) [noel@belly noel]$ [noel@belly noel]$ wbinfo -a uk+nkelly%wrongpassword plaintext password authentication failed error code was NT_STATUS_WRONG_PASSWORD (0xc06a) Could not authenticate user uk+nkelly%password with plaintext password challenge/response password authentication failed error code was NT_STATUS_WRONG_PASSWORD (0xc06a) Could not authenticate user uk+nkelly with challenge/response [noel@belly noel]$ Noel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12 May 2002 09:27 To: [EMAIL PROTECTED] Cc: Andrew Bartlett Subject: winbind authentication Hi, this problem applies to 2.2.4 and partly to head, too. I need to set a username when connecting to a Win2K server using winbind. The documentiation states "wbinfo -A user%password" would do the trick. However this doesn't work. For wbinfo in 2.2.4: - the "-A" option is documented, but isn't working. (--set-auth-user is the actual name of the command but this is undocumented) - secrets_init() isn't called so secrets.tdb isn't open. - the username variable instead of user is stored (which is user%password instead of user alone) The patch below makes it work for me. In head the same patch can be applied, with the exception of secrets_init() not being needed. ...Juergen --- nsswitch/wbinfo.origFri May 3 03:03:20 2002 +++ nsswitch/wbinfo.c Sat May 11 18:30:06 2002 @@ -592,9 +592,9 @@ password = ""; /* Store in secrets.tdb */ - - if (!secrets_store(SECRETS_AUTH_USER, username, - strlen(username) + 1) || + secrets_init(); + if (!secrets_store(SECRETS_AUTH_USER, user, + strlen(user) + 1) || !secrets_store(SECRETS_AUTH_DOMAIN, domain, strlen(domain) + 1) || !secrets_store(SECRETS_AUTH_PASSWORD, password, @@ -640,6 +640,7 @@ printf("\t-m\t\t\tlist trusted domains\n"); printf("\t-r user\t\t\tget user groups\n"); printf("\t-a user%%password\tauthenticate user\n"); + printf("\t-A user%%password\tstore user and password used by winbind (root only)\n"); printf("\t-p 'ping' winbindd to see if it is alive\n"); printf("\t--sequence\t\tshow sequence numbers of all domains\n"); } @@ -683,7 +684,7 @@ { "sequence", 0, POPT_ARG_NONE, 0, OPT_SEQUENCE }, { "user-groups", 'r', POPT_ARG_STRING, &string_arg, 'r' }, { "authenticate", 'a', POPT_ARG_STRING, &string_arg, 'a' }, - { "set-auth-user", 0, POPT_ARG_STRING, &string_arg, OPT_SET_AUTH_USER }, + { "set-auth-user", 'A', POPT_ARG_STRING, &string_arg, OPT_SET_AUTH_USER }, { "ping", 'p', POPT_ARG_NONE, 0, 'p' }, { 0, 0, 0, 0 } };
Re: winbind authentication
Hi Noel, Am Sonntag, 12. Mai 2002 13:39 schrieb Noel Kelly: > Downloaded 2.2.4 yesterday and it without your patch it works for me: > > [noel@belly noel]$ wbinfo -a uk+nkelly%password > plaintext password authentication succeeded > error code was NT_STATUS_OK (0x0) > challenge/response password authentication succeeded > error code was NT_STATUS_OK (0x0) > [noel@belly noel]$ > [noel@belly noel]$ wbinfo -a uk+nkelly%wrongpassword > plaintext password authentication failed > error code was NT_STATUS_WRONG_PASSWORD (0xc06a) > Could not authenticate user uk+nkelly%password with plaintext password > challenge/response password authentication failed > error code was NT_STATUS_WRONG_PASSWORD (0xc06a) > Could not authenticate user uk+nkelly with challenge/response > [noel@belly noel]$ > I think I wasn't clear enough. The problem is that winbind itself is not authenticating to the W2K server. Per default winbind uses empty fields for user and password to connect to the W2K server. You need to change this sometimes to get user and group lists. Therefore one needs "wbinfo -A user%password" to store user and password in the secrets tdb. ...Juergen
{ ¼ºÀα¤°í } Ä®¶ó ÇÚµåÆù ¹× PDAÀ» ¹«·á·Î µå¸³´Ï´Ù.
Title: realsex * º» ¸ÞÀÏÀº Á¤º¸Åë½ÅºÎ ±Ç°í»çÇ׿¡ ÀǰÅ(±¤°í)ÀÓÀ» ¹àÈü´Ï´Ù. Çã¶ô¾øÀÌ È«º¸¸ÞÀÏÀ» º¸³»µå·Á Á˼ÛÇÕ´Ï´Ù. ±ÍÇÏÀÇ E-Mail Àº °Ô½ÃÆÇ µî ÀÎÅÍ³Ý »ó¿¡¼ ¾Ë°Ô µÇ¾úÀ¸¸ç, E-Mail À» Á¦¿ÜÇÑ ¾î¶°ÇÑ Á¤º¸µµ ¾ËÁö ¸øÇÔÀ» ¹àÈü´Ï´Ù. ¼ö½Å°ÅºÎ¸¦ ¿øÇÏ½Ã¸é ¾Æ·¡¿¡¼ ¼ö½Å°ÅºÎ ÇØ ÁÖ¼¼¿ä.°ÅºÎÇϽŠºÐµé¿¡°Ô´Â ´Ù½Ã´Â º¸³»Áö ¾ÊÀ» °ÍÀÔ´Ï´Ù. Á¤º¸¸¦ ¿øÄ¡ ¾Ê´Â ºÐ²²´Â ´ë´ÜÈ÷ ÁË¼Û ÇÕ´Ï´Ù. 16ÈÀ½¸á·Îµð n.topµ¿¿µ»óÁö¿ø ³ë·¡¹æ ±â´É 16ÈÀ½ º§¼Ò¸® 65.000color full Ä÷¯±×·¡ÇÈ ¸Þ´º CDMA2000Áö¿ø 16ÈÀ½¸á·Îµð »çÁø ´Ù¿î·Îµå ±â´É E-mail¼ºñ½º Áõ±Ç °Å·¡ ¹«¼± ÀÎÅÍ³Ý ¼ö½Å°ÅºÎ
[±¤°í] °¡Àå Àú·ÅÇÑ ÀÚµ¿Â÷º¸Çè·á¸¦ ¾Ë·Áµå¸³´Ï´Ù.
Title: °¡ºñ¾ßºìº¸Çè·á Á¤º¸Åë½ÅºÎ ±Ç°í »çÇ׿¡ ÀǰŠÁ¦¸ñ¿¡ [±¤°í]¶ó°í Ç¥±âÇÑ ±¤°í¸ÞÀÏ ÀÔ´Ï´Ù. ¼ö½ÅÀ» ¿øÄ¡ ¾ÊÀ¸½Ã¸é ¼ö½Å°ÅºÎ¸¦ ´·¯ÁÖ¼¼¿ä
Help with TCONX
Hi, I've got problems in the developement of a very basic SMB client (list, move, rename and delete files). I've got difficulties in finding the name of a share available on a host. I've got some problems to understand the smb_tconx and smb_architecture and how it's working . For example if I use the command "smbclient -N -L 127.0.0.1" a smb_tconx request packet will be sent with the "Path[]" (according to the draft_leach_cifs_v1_spec_02.txt) field filled with "127.0.0.1" and the "service[]" field filled with "IPC$ ?" and it's the same thing for the response .For this, all is OK but after ... During this session ("smbclient -N -L 127.0.0.1") the only shared available is an IPC. The SetupX and Negprot have been removed. Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.0.3] Sharename Type Comment - --- IPC$ IPC IPC Service (Samba Server) Server Comment - --- CASE Samba Server Workgroup Master - --- MYGROUP CASE WORKGROUP ALEX Ok, tcpdump packet session : SMB PACKET: SMBtconX (REQUEST) (DF) 0x 4500 007b 03c7 4000 4006 38b4 7f00 0001 E..{..@.@.8. 0x0010 7f00 0001 0418 008b cdc9 9088 cdd3 9912 0x0020 8018 7960 7416 0101 080a 0006 77b5 ..y`t.w. 0x0030 0006 77b4 0043 ff53 4d42 7500 ..wC.SMBu... 0x0040 0008 0100 0x0050 4302 6400 0100 04ff 0001 ..C.d... 0x0060 0018 5c5c 3132 372e 302e 302e 315c \\127.0.0.1\ 0x0070 4950 4324 003f 3f3f 3f3f 00IPC$.?. Ok asking for ressources available on localhost. SMB PACKET: SMBtconX (REPLY) (DF) 0x 4500 0069 03c8 4000 4006 38c5 7f00 0001 E..i..@.@.8. 0x0010 7f00 0001 008b 0418 cdd3 9912 cdc9 90cf 0x0020 8018 7960 3410 0101 080a 0006 77b6 ..y`4.w. 0x0030 0006 77b5 0031 ff53 4d42 7500 ..w1.SMBu... 0x0040 0088 0100 0x0050 0100 4302 6400 0100 03ff 0001 0008 ..C.d... 0x0060 0049 5043 0049 5043 00 .IPC.IPC. Just IPC available. SMB PACKET: SMBtrans (REQUEST) (DF) 0x 4500 0097 03c9 4000 4006 3896 7f00 0001 E.@.@.8. 0x0010 7f00 0001 0418 008b cdc9 90cf cdd3 9947 ...G 0x0020 8018 7960 63a0 0101 080a 0006 77b6 ..y`c.w. 0x0030 0006 77b6 005f ff53 4d42 2500 ..w_.SMB%... 0x0040 0008 0100 0x0050 0100 4302 6400 0100 0e13 04ff ..C.d... 0x0060 ff00 0013 004c .L.. 0x0070 005f 0020 005c 5049 5045 5c4c 414e .\PIPE\LAN 0x0080 4d41 4e00 5772 4c65 6800 4231 3342 MAN...WrLeh. 0x0090 577a 0001 00ff ff B13BWz. What is "\PIPE\LAM ...WrLeh.B13BWz" ?, I've got some problems, it's not writen in the cifs draft . How it's working ? SMB PACKET: SMBtrans (REPLY) (DF) 0x 4500 00a7 03ca 4000 4006 3885 7f00 0001 E.@.@.8. 0x0010 7f00 0001 008b 0418 cdd3 9947 cdc9 9132 ...G...2 0x0020 8018 7960 fc41 0101 080a 0006 77b7 ..y`.Aw. 0x0030 0006 77b6 006f ff53 4d42 2500 ..wo.SMB%... 0x0040 0088 0100 0x0050 0100 4302 6400 0100 0a08 002f 0008 ..C.d../ 0x0060 0038 002f 0040 0038 .8.../.@.8.. 0x0070 0100 0100 4950 4324 IPC$ 0x0080 0300 1400 4950 4320 IPC. 0x0090 5365 7276 6963 6520 2853 616d 6261 2053 Service.(Samba.S 0x00a0 6572 7665 7229 00 erver). Ok, I think it's for sharename, type and comment, but one more time it's not describing in the doc SMB PACKET: SMBtrans (REQUEST) (DF) 0x 4500 00a6 03cb 4000 4006 3885 7f00 0001 E.@.@.8. 0x0010 7f00 0001 0418 008b cdc9 9132 cdd3 99ba ...2 0x0020 8018 7960 a312 0101 080a 0006 77b7 ..y`..w. 0x0030 0006 77b7 006e ff53 4d42 2500 ..wn.SMB%... 0x0040 0008 0100 0x0050 0100 4302 6400 0100 0e22 0008 ..C.d".. 0x0060 4400 0022 004c D..".L.. 0x0070 006e 002f 005c 5049 5045 5c4c 414e .n.../.\PIPE\LAN 0x0080 4d41 4e00 6800 5772 4c65 68447a004231 MAN.h.WrLehDz.B1 0x0090 3642 4244 7a00 0100 0044 4d59 6BBDzDMY 0x00a0 4752 4f55 5000 GROUP. One more time "\PIPE\LANMAN ...etc" but we've got the string character which following which is different than the previous SMBtrans Packet and we've got the WORKGROUP with. Why ? SMB PACKET: SMBtrans (REPLY) (DF) 0x 4500 009f 03cc 4000 4006 388b 7f00 0001 E.@.@.8. 0x0010 7f00 0001 008b 0418 cdd3 99ba cdc9 91a4 0x0020 8018 7960 14eb 0101 080a 0006 77b8 ..y`..w. 0x00
Re: Help with TCONX
On Sun, 12 May 2002, william fargo wrote: > Hi, > > I've got problems in the developement of a very basic SMB > client (list, move, rename and delete files). I've got > difficulties in finding the name of a share available on a > host. I've got some problems to understand the smb_tconx and > smb_architecture and how it's working . > For example if I use the command "smbclient -N -L 127.0.0.1" > a smb_tconx request packet will be sent with the "Path[]" > (according to the draft_leach_cifs_v1_spec_02.txt) field > filled with "127.0.0.1" and the "service[]" field filled > with "IPC$ ?" and it's the same thing for the response > .For this, all is OK but after ... > During this session ("smbclient -N -L 127.0.0.1") the only > shared available is an IPC. > The SetupX and Negprot have been removed. Well, you are lucky! You are connecting to a Samba server, Have you set up any shares on the server. > Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.0.3] > > Sharename Type Comment > - --- > IPC$ IPC IPC Service (Samba Server) > > Server Comment > - --- > CASE Samba Server > > Workgroup Master > - --- > MYGROUP CASE > WORKGROUP ALEX > > > Ok, tcpdump packet session : > > SMB PACKET: SMBtconX (REQUEST) > > (DF) > 0x 4500 007b 03c7 4000 4006 38b4 7f00 0001 > E..{..@.@.8. > 0x0010 7f00 0001 0418 008b cdc9 9088 cdd3 9912 > > 0x0020 8018 7960 7416 0101 080a 0006 77b5 > ..y`t.w. > 0x0030 0006 77b4 0043 ff53 4d42 7500 > ..wC.SMBu... > 0x0040 0008 0100 > > 0x0050 4302 6400 0100 04ff 0001 > ..C.d... > 0x0060 0018 5c5c 3132 372e 302e 302e 315c > \\127.0.0.1\ > 0x0070 4950 4324 003f 3f3f 3f3f 00IPC$.?. > > Ok asking for ressources available on localhost. > > > SMB PACKET: SMBtconX (REPLY) > > (DF) > 0x 4500 0069 03c8 4000 4006 38c5 7f00 0001 > E..i..@.@.8. > 0x0010 7f00 0001 008b 0418 cdd3 9912 cdc9 90cf > > 0x0020 8018 7960 3410 0101 080a 0006 77b6 > ..y`4.w. > 0x0030 0006 77b5 0031 ff53 4d42 7500 > ..w1.SMBu... > 0x0040 0088 0100 > > 0x0050 0100 4302 6400 0100 03ff 0001 0008 > ..C.d... > 0x0060 0049 5043 0049 5043 00 .IPC.IPC. > > Just IPC available. > > > > SMB PACKET: SMBtrans (REQUEST) > > (DF) > 0x 4500 0097 03c9 4000 4006 3896 7f00 0001 > E.@.@.8. > 0x0010 7f00 0001 0418 008b cdc9 90cf cdd3 9947 > ...G > 0x0020 8018 7960 63a0 0101 080a 0006 77b6 > ..y`c.w. > 0x0030 0006 77b6 005f ff53 4d42 2500 > ..w_.SMB%... > 0x0040 0008 0100 > > 0x0050 0100 4302 6400 0100 0e13 04ff > ..C.d... > 0x0060 ff00 0013 004c > .L.. > 0x0070 005f 0020 005c 5049 5045 5c4c 414e > .\PIPE\LAN > 0x0080 4d41 4e00 5772 4c65 6800 4231 3342 > MAN...WrLeh. > 0x0090 577a 0001 00ff ff B13BWz. Ummm, the CIFS TR 1.0 is out now at SNIA. SO you can look at that. > What is "\PIPE\LAM ...WrLeh.B13BWz" ?, I've got some > problems, it's not writen in the cifs draft . How it's > working ? This is a LanMan request. Probably NetShareEnum. Have you looked at libsmbclient? > SMB PACKET: SMBtrans (REPLY) > > (DF) > 0x 4500 00a7 03ca 4000 4006 3885 7f00 0001 > E.@.@.8. > 0x0010 7f00 0001 008b 0418 cdd3 9947 cdc9 9132 > ...G...2 > 0x0020 8018 7960 fc41 0101 080a 0006 77b7 > ..y`.Aw. > 0x0030 0006 77b6 006f ff53 4d42 2500 > ..wo.SMB%... > 0x0040 0088 0100 > > 0x0050 0100 4302 6400 0100 0a08 002f 0008 > ..C.d../ > 0x0060 0038 002f 0040 0038 > .8.../.@.8.. > 0x0070 0100 0100 4950 4324 > IPC$ > 0x0080 0300 1400 4950 4320 > IPC. > 0x0090 5365 7276 6963 6520 2853 616d 6261 2053 > Service.(Samba.S > 0x00a0 6572 7665 7229 00 erver). > > Ok, I think it's for sharename, type and comment, but one > more time it's not describing in the doc > > SMB PACKET: SMBtrans (REQUEST) > > (DF) > 0x 4500 00a6 03cb 4000 4006 3885 7f00 0001 > E.@.@.8. > 0x0010 7f00 0001 0418 008b cdc9 9132 cdd3 99ba > ...2 > 0x0020 8018 7960 a312 0101 080a 0006 77b7 > ..y`..w. > 0x0030 0006 77b7 006e ff53 4d42 2500 > ..wn.SMB%... > 0x0040 0008 0100
Adding Recursion Available bit to name_query and node_status_query
Hi, I would like to add an additional flag to both name_query and node_status_query. This flag will return the value of the Recursion Available flag in the nmb packet header. I am sure some people will find it useful. Any objections? Regards - Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: Can't connect to a windows share drive ...
On Fri, 10 May 2002, Hoover, Robert A. [C] wrote: > I'm very new to Samba, and being an NT administrator, I'm also not very > proficient with the Unix world. > > However, I've been following some directions in configuring Samba and have > made decent progress to the point of adding the server to the NT domain and > seeing the share drive when I click on the icon. > > The problem I'm dealing with is when I try to map a drive to the share, it > prompts me for a user name and password. Of course no matter what I put in > for the password it doesn't accept it. Hmmm, sounds like your Windows clients want to do encrypted passwords, but you have set up Samba to use the default of plain-text passwords. > My understanding is that the drive should map without any need to enter a > username and password. Yes, if you have the encrypted vs plaintest passwords issue sorted. > I've gone through quite a bit of documentation but nothing seems to be > getting pass this particular barrier. > > Does anybody have any suggestions of what I need to try at this point? I'm > using Samba 2.2.0 You should upgrade first, to 2.2.3a or so. Then you should figure out whether or not you want encrypted passwords (safer), or plaintext passwords (a little less work). There are .reg files in the Samba distribution to enable plaintext passwords on your Windows Clients if you want to go this way, and the FAQ and HOWTOs explain how to set up encrypted passwords if you want to go this way! There are also things called books, that will help. One I can suggest is Special Edition, Using Samba. Regards - Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: winbind authentication
Noel Kelly wrote: > > Downloaded 2.2.4 yesterday and it without your patch it works for me: > > [noel@belly noel]$ wbinfo -a uk+nkelly%password We are not talking about -a authenticiaon, but the method of sepecifying a username and password that winbindd should use itself to talk to the domain controller. It is an ugly hack to get around the fact that we would normally need anonymous access to the DC to function. This of it as the machine account, except that MS don't allow us to use the machine account - so we need to create a second one as well. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net
Re: winbind authentication
On Sun, May 12, 2002 at 10:26:41AM +0200, Juergen Hasch wrote: > this problem applies to 2.2.4 and partly to head, too. > > I need to set a username when connecting to a Win2K server using winbind. > The documentiation states "wbinfo -A user%password" would do the trick. Hi - I've checked this fix in to various branches. Thanks, Tim.
Re: Problem with printer properties in Samba vers. 2.2.4
At 17:45 10.05.2002 +0200, Claus Svarer wrote: >"Printer properties can not be displayes. Operation could not be >completed". > >I have followed the instructions for configuring the Samba share "$print" the share name must be "print$" not "$print", but still don't really know if it solve your problem. I had no problems with 2.2.3a and printing... metze - Stefan "metze" Metzmacher <[EMAIL PROTECTED]>
Re: Problem with printer properties in Samba vers. 2.2.4
I had a similar issue a couple of weeks ago. Here is the link to my post: http://lists.samba.org/pipermail/samba-technical/2002-April/036269.html >From your description, I'm not sure you have the same issue but the work around might work for you. Hope this helps, - Sam On Mon, 13 May 2002, Stefan (metze) Metzmacher wrote: > At 17:45 10.05.2002 +0200, Claus Svarer wrote: > > >"Printer properties can not be displayes. Operation could not be > >completed". > > > >I have followed the instructions for configuring the Samba share "$print" > > the share name must be "print$" not "$print", > but still don't really know if it solve your problem. > I had no problems with 2.2.3a and printing... > > > > metze > - > Stefan "metze" Metzmacher <[EMAIL PROTECTED]> > >
Re: compile samba-2.2.4 on Solaris 7
Applied patches in ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ and re-compiled. Warning "nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' redefined" disappeared. But I still got -KPIC rather than -fPIC, so that had to manually edit Makefile. Seems the patch for configure.in did not work. Thanks, Tian. - Original Message - From: "Gerald Carter" <[EMAIL PROTECTED]> To: "Tian-xiong Lu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 11:39 AM Subject: Re: compile samba-2.2.4 on Solaris 7 > On Wed, 8 May 2002, Tian-xiong Lu wrote: > > > Thanks, Richard for the reply. > > > > Tried with -fPIC instead of -KPIC, it worked. Checked with gcc > > manpage, -fPIC is > > an option but -KPIC not. > > Fixed in SAMBA_2_2 & HEAD > > > 1. smbd/password.c: In function 'grab_server_mutex': > > smbd/password.c:1198: warning: passing arg 1 of `message_named_mutex' > > discards > > `const' from pointer target type. > > Ignore for now. > > > 2. lib.system.c: In function`sys_readdir': > > lib.system.c:331: warning: return from incompatible pointer type > > Did not see this one. > > > 3. In file included from nsswitch/winbind_nss_solaris.c:20: > > nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' redefined > > include/smb_macros.h:48: warning: this is the location of the previous > > definition > > Fixed in SAMBA_2_2 & HEAD. > > I'm collecting individual patches against 2.2.4 in > ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ > > > > > > cheers, jerry > - > Hewlett-Packard http://www.hp.com > SAMBA Team http://www.samba.org > --http://www.plainjoe.org > "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 > --"I never saved anything for the swim back." Ethan Hawk in Gattaca-- >
Re: compile samba-2.2.4 on Solaris 7
On Mon, 13 May 2002, Tian-xiong Lu wrote: > Applied patches in ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ > and re-compiled. > Warning "nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' > redefined" > disappeared. But I still got -KPIC rather than -fPIC, so that had to > manually edit Makefile. > Seems the patch for configure.in did not work. It is possible that configure has not been rebuild from configure.in. Can you try something for us: rm config.cache autoconf ./configure make -- Regards - Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: compile samba-2.2.4 on Solaris 7
Hi Richard, Tried, but both config.cache and autoconf do not exit in the source directory. Maybe in somewhere else. Tian. - Original Message - From: "Richard Sharpe" <[EMAIL PROTECTED]> To: "Tian-xiong Lu" <[EMAIL PROTECTED]> Cc: "Gerald Carter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 13, 2002 5:07 PM Subject: Re: compile samba-2.2.4 on Solaris 7 > On Mon, 13 May 2002, Tian-xiong Lu wrote: > > > Applied patches in ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ > > and re-compiled. > > Warning "nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' > > redefined" > > disappeared. But I still got -KPIC rather than -fPIC, so that had to > > manually edit Makefile. > > Seems the patch for configure.in did not work. > > It is possible that configure has not been rebuild from configure.in. > > Can you try something for us: > > rm config.cache > autoconf > ./configure > make > > -- > Regards > - > Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED] >
Re: compile samba-2.2.4 on Solaris 7
On Mon, 13 May 2002, Tian-xiong Lu wrote: > Hi Richard, > > Tried, but both config.cache and autoconf do not exit in the source > directory. That means you do not have autoconf installed. Was it 2.2.4 you were playing with or the latest CVS? If it is 2.2.4, then there will be no changes, because Jerry's changes were applied to CVS and are not in 2.2.4. > Tian. > - Original Message - > From: "Richard Sharpe" <[EMAIL PROTECTED]> > To: "Tian-xiong Lu" <[EMAIL PROTECTED]> > Cc: "Gerald Carter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, May 13, 2002 5:07 PM > Subject: Re: compile samba-2.2.4 on Solaris 7 > > > > On Mon, 13 May 2002, Tian-xiong Lu wrote: > > > > > Applied patches in ftp://ftp.samba.org:/pub/jerry/samba-2.2.4-patches/ > > > and re-compiled. > > > Warning "nsswitch/winbind_nss_config.h:135: warning: `ZERO_STRUCTP' > > > redefined" > > > disappeared. But I still got -KPIC rather than -fPIC, so that had to > > > manually edit Makefile. > > > Seems the patch for configure.in did not work. > > > > It is possible that configure has not been rebuild from configure.in. > > > > Can you try something for us: > > > > rm config.cache > > autoconf > > ./configure > > make > > > > -- > > Regards > > - > > Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], > > [EMAIL PROTECTED] > > > -- Regards - Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
[±¤°í]Àü±â¸ðÅÍ·Î ±¸µ¿µÇ´Â Àüµ¿Å±º¸µå °øµ¿±¸¸Å 5¿ù20ÀϱîÁö
¢¹ º» ¸ÞÀÏÀº Á¤º¸Åë½Å¸Á ÀÌ¿ëÃËÁø ¹× Á¤º¸º¸È£ µî¿¡ °üÇÑ ¹ý·ü Á¦ 50Á¶¿¡ ÀǰÅÇÑ [±¤°í] ¸ÞÀÏÀÔ´Ï´Ù. ¢¹ e-MailÁÖ¼Ò ÀÌ¿ÜÀÇ ¾î¶² Á¤º¸µµ °¡Áö°í ÀÖÁö ¾ÊÀ¸¸ç ¿øÄ¡¾Ê´Â Á¤º¸¿´´Ù¸é Á¤ÁßÈ÷ »ç°úµå¸³´Ï´Ù. ¿øÄ¡ ¾Ê´Â Á¤º¸¿´´Ù¸é ¼ö½Å°ÅºÎ ÇØ ÁÖ½Ã¸é ¹ß¼ÛµÇÁö ¾Êµµ·Ï ÇϰڽÀ´Ï´Ù. ¢Ã Á¦Ç° »ç¿ë¿ëµµ.1. ±Ù°Å¸® ÃâÅð±Ù½Ã.2. ´ëÇб³ Ä·ÆÛ½º¿¡¼ (°ÀǽÇÀÌ ¸Ö¾î¼ °í»ýÇϽźÐ)3. ·¹ÀúȰµ¿½Ã.¢Ã °£·«ÇÑ Á¦Ç° Ư¡.1. ÇѹøÃæÀüÀ¸·Î 4½Ã°£Á¤µµ Àüµ¿ À¸·Î ¿îÀü°¡´É2. ³ô³·ÀÌ Á¶Àý °¡´ÉÇØ¼ û¼Ò³â¿¡¼ ¼ºÀαîÁö »ç¿ë°¡´É3. ¼ÒÀ½ÀÌ ¾ø°í Àü±â¸ðÅÍ¿¡ ÀÇÇÑ ±¸µ¿À¸·Î ¿À¿°¾øÀ½.4. °¡º¿ö¼ ÈÞ´ë°¡ ¿ëÀÌÇÔ ¢Ã »ç¿ë¼³¸í ¹× Ư¡ ... 1. º» Á¦Ç°Àº ÃàÀüÁö¿Í ¸ðÅ͸¦ ÀÌ¿ëÇÑ Àüµ¿ űº¸µåÀÔ´Ï´Ù. 2. ±âÁ¸ ¼ÕÀ¸·Î Á¶ÀÛÇÏ´Â Á¦Ç°°ú ´Þ¸® ¹ßÆÇÀ» ¹â´Â ¹ß¸¸À¸·Îµµ ÆÄ¿ö¿Í ¼Óµµ¸¦ Á¶ÀýÇϸç ÁÖÇàÀÌ °¡´ÉÇÏ¸ç ¸Å¿ì Æí¸®ÇÕ´Ï´Ù.3. ±Þ Ãâ¹ßÀ» ¸·À» ¼ö ÀÖµµ·Ï ½ÂÂ÷ ÈÄ ¹ß·Î ±¼·¯¾ßÁö¸¸ ¸ðÅͰ¡ ÀÛµ¿Çϸç ÁÖÇà½Ã ¾ÈÀü¼Óµµ(10~16Km/h)¸¦ À¯ÁöÇϵµ·Ï ¼³°èÇß½À´Ï´Ù. 4. Àú¼ÒÀ½ ¸ðÅ͸¦ ä¿ëÇÏ¿© ÁÖÇà½Ã ¼ÒÀ½À̳ªÁö ¾Ê°í ¿À¿°¹°ÁúÀ» ¹èÃâÇÏÁö ¾Ê½À´Ï´Ù. 5. ÇÚµåºê·¹ÀÌÅ© ±âº»Ã¢Âø, µå·³¹æ½Ä Á¦¾î ºê·¹ÀÌÅ©´Â ¹ÙÄûÀÇ ¿·¸é¿¡¼ Á¦µ¿ÇÏ¿© ¸¶¸ð¸¦ ¸·½À´Ï´Ù.6. Á¢°í Æî ¼ö ÀÖ¾î¼ ÈÞ´ë°¡ °£ÆíÇϰí, 2´Ü°è ³ô³·ÀÌ Á¶Àý¹öưÀ¸·Î Ű¿¡ »ó°ü¾øÀÌ »ç¿ë°¡´ÉÇÕ´Ï´Ù.
Bug found in smbclient
Hi, Just in case I'm the first to have noticed this: $ smbclient //server/share -c "ls" -Tc added interface ip=172.16.1.3 bcast=172.16.1.255 nmask=255.255.255.0 Segmentation fault This happened when out of curiosity, I wondered if it was possible to execute some smbclient commands, such as a cd to a subdirectory, before running the -Tc tar backup of it. The "server" and "share" strings in the above command can be anything, and the command with -c can also be a "cd dir" command. Just a plain "cd" with no arguments resulted in odd behavior (the cd command ran, then smbclient hung, without doing a tar backup). I haven't tried any other smbclient commands with -c. Jay Ts [EMAIL PROTECTED]
smbwrapper
Hi, where can I find docs for smbwrapper? Is option --with-smbwrapper supported in Solaris? Tian.