publishing printer to ADS not working
Hello everybody,
this is a posting i already sent to the "general" samba list
but did not get any response yet :-(
Sorry for cross-posting !
I have run into a problem which I am not able to resolve
by myself :-(
I have added a new printer (cups) to a Samba 3.0.28a server.
The new printer showed up in the network neighborhood
(Windows XP) and I was able to print to the
new print queue. Then I tried to publish the new printer
to the AD ( we use a windows 2000 server for user
administration and GPOs) with the following command:
net ads printer publish novapr07 -UXXXX
the command does not return any errors, so I thought
that it was successful, but unfortunately the new printer
did not show up in the ADS.
In the samba logs there is no sign of an errors :-(
I then performed the same command again but with debugging
enabled (-d 3).
It returened following output:
<--snip
[2008/06/23 10:12:40, 3] param/loadparm.c:lp_load(5055)
lp_load: refreshing parameters
[2008/06/23 10:12:40, 3] param/loadparm.c:init_globals(1440)
Initialising global parameters
[2008/06/23 10:12:40, 3] param/params.c:pm_process(572)
params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
[2008/06/23 10:12:40, 3] param/loadparm.c:do_section(3794)
Processing section "[global]"
[2008/06/23 10:12:40, 2] lib/interface.c:add_interface(81)
added interface ip=10.2.1.5 bcast=10.2.1.255 nmask=255.255.255.0
bulldog's password:
[2008/06/23 10:12:44, 3] libsmb/namequery.c:get_dc_list(1489)
get_dc_list: preferred server list: "10.2.1.8,
NOVAW2K01.novanetwork.loc"
[2008/06/23 10:12:44, 3] libads/ldap.c:ads_connect(394)
Connected to LDAP server 10.2.1.8
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(300)
ads_sasl_spnego_bind: got server principal name =
novaw2k01$@NOVANETWORK.LOC
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_krb5_mk_req(593)
ads_krb5_mk_req: krb5_cc_get_principal failed (No credentials cache
found)
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads]
expiration Mo, 23 Jun 2008 20:12:44 CEST
[2008/06/23 10:12:44, 3] libsmb/namequery.c:get_dc_list(1489)
get_dc_list: preferred server list: "10.2.1.8,
NOVAW2K01.novanetwork.loc"
[2008/06/23 10:12:44, 3] libads/ldap.c:ads_connect(394)
Connected to LDAP server 10.2.1.8
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(300)
ads_sasl_spnego_bind: got server principal name =
novaw2k01$@NOVANETWORK.LOC
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads]
expiration Mo, 23 Jun 2008 20:12:44 CEST
[2008/06/23 10:12:44, 3] libsmb/namequery.c:get_dc_list(1489)
get_dc_list: preferred server list: "10.2.1.8,
NOVAW2K01.novanetwork.loc"
[2008/06/23 10:12:44, 3] libads/ldap.c:ads_connect(394)
Connected to LDAP server 10.2.1.8
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(300)
ads_sasl_spnego_bind: got server principal name =
novaw2k01$@NOVANETWORK.LOC
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads]
expiration Mo, 23 Jun 2008 20:12:44 CEST
[2008/06/23 10:12:44, 3] libsmb/namequery.c:get_dc_list(1489)
get_dc_list: preferred server list: "10.2.1.8,
NOVAW2K01.novanetwork.loc"
[2008/06/23 10:12:44, 3] libads/ldap.c:ads_connect(394)
Connected to LDAP server 10.2.1.8
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(291)
ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/23 10:12:44, 3] libads/sasl.c:ads_sasl_spnego_bind(300)
ads_sasl_spnego_bind: got server principal name =
novaw2k01$@NOVANETWORK.LOC
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads]
expiration Mo, 23 Jun 2008 20:12:44 CEST
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_start_connection(1556)
Connecting to host=NOVALX01
[2008/06/23 10:12:44, 3] lib/util_sock.c:open_socket_out(874)
Connecting to 10.2.1.5 at port 445
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_session_setup_spnego(795)
Doing spnego session setup (blob length=121)
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 2 840 113554 1 2 2
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 2 840 48018 1 2 2
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/23 10:12:44, 3] libsmb/cliconnect.c:cli_session_setup_spnego(828)
got principal=cifs/novalx01.novanetwork.loc@NOVANETWORK.LOC
[2008/06/23 10:12:44, 2] libsmb/cliconnect.c:cli_session_setup_kerberos(615)
Doing kerberos session setup
[2008/06/23 10:12:44, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:cliconnect]
expiration Mo, 23 Jun 2008 20:12:44 CEST
[2008/06/23 10:12:44, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2082)
rpc_pipe_bind: Remote machine NOVALX01 pipe \spoolss fnum 0x74fd bind
request returned ok.
[2008/06/23 10:12:44, 3]
libads/ldap_printer.c:get_remote_printer_publishing_data(304)
Unable to open printer \\NOVALX01\novalx07, error is
WERR_INVALID_PRINTER_NAME.
[2008/06/23 10:12:44, 2] utils/net.c:main(1046)
return code = -1
snip-->
Thank you for your kind help
best regards
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iEYEARECAAYFAkhguGUACgkQpw6fP7dIJ7Mv2QCgyltKO9IZg7rzl6dp/wRl6GT3
fHMAn3VU1X97JQhxxNl7oOrbuaLIPrci
=Ly/4
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Hello Andreas,
On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:[color=blue]
> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
> Unable to open printer \\NOVALX01\novalx07, error is
> WERR_INVALID_PRINTER_NAME.
> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
> return code = -1[/color]
I guess that the server name is not NOVALX01, right?
Please try the following command:
net ads printer publish <server name> novapr07 -UXXXX
Does that work for you?
Karolin
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
[url]http://www.SerNet.DE[/url], mailto: Info @ SerNet.DE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFIYMFnKGi9fisXk1ERAlokAJwLDL0Q8QWnlUS8qP30psxiB6FkjQCeIt+L
5gA6/yusA9TS/IJq7d+89nY=
=F1nR
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
On Tue, Jun 24, 2008 at 11:41:59AM +0200, Karolin Seeger wrote:[color=blue]
> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:[color=green]
> > libads/ldap_printer.c:get_remote_printer_publishing_data(304)
> > Unable to open printer \\NOVALX01\novalx07, error is
> > WERR_INVALID_PRINTER_NAME.
> > [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
> > return code = -1[/color]
>
> I guess that the server name is not NOVALX01, right?
>
> Please try the following command:
>
> net ads printer publish <server name> novapr07 -UXXXX[/color]
Sorry, just the other way around:
net ads printer publish novapr07 <server name> -UXXXX
[color=blue]
> Does that work for you?[/color]
Karolin
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
[url]http://www.SerNet.DE[/url], mailto: Info @ SerNet.DE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFIYMJYKGi9fisXk1ERAs47AKCWe8OU38HKMARR6bvpZQqYNifRiQCeMBSb
VtygVGLJ2EW1RbP/y40DwlQ=
=vJBv
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Hello Karolin,
thank you for your response, but unfortunately this does not work.
net ads printer publish novalx01 novapr07 -Uxxxxxx -d 3
If I enter the command the way you proposed "net" tries to connect
to host novapr07 which is not available
<--snip
[2008/06/24 11:44:00, 3] libsmb/cliconnect.c:cli_start_connection(1556)
Connecting to host=novapr07
[2008/06/24 11:44:00, 3] lib/util_sock.c:open_socket_out(874)
Connecting to 10.2.1.13 at port 445
[2008/06/24 11:44:00, 2] lib/util_sock.c:open_socket_out(911)
error connecting to 10.2.1.13:445 (Verbindungsaufbau abgelehnt)
[2008/06/24 11:44:00, 3] lib/util_sock.c:open_socket_out(874)
Connecting to 10.2.1.13 at port 139
[2008/06/24 11:44:00, 2] lib/util_sock.c:open_socket_out(911)
error connecting to 10.2.1.13:139 (Verbindungsaufbau abgelehnt)
[2008/06/24 11:44:00, 1] libsmb/cliconnect.c:cli_connect(1498)
Error connecting to 10.2.1.13 (Verbindungsaufbau abgelehnt)
[2008/06/24 11:44:00, 1] libsmb/cliconnect.c:cli_start_connection(1561)
cli_start_connection: failed to connect to NOVAPR07<20> (10.2.1.13).
Error NT_STATUS_CONNECTION_REFUSED
Unable to open a connnection to novapr07 to obtain data for novalx01
[2008/06/24 11:44:00, 2] utils/net.c:main(1046)
return code = -1
snip-->
kind regards
Andreas
Karolin Seeger schrieb:[color=blue]
> Hello Andreas,
>
> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:
> [color=green]
>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>> Unable to open printer \\NOVALX01\novalx07, error is
>> WERR_INVALID_PRINTER_NAME.
>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>> return code = -1
>> [/color]
>
> I guess that the server name is not NOVALX01, right?
>
> Please try the following command:
>
> net ads printer publish <server name> novapr07 -UXXXX
>
> Does that work for you?
>
> Karolin
>
> [/color]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iEYEARECAAYFAkhgw8gACgkQpw6fP7dIJ7N4xQCeMaebGhaDsfKPx0fFo/t0Doi3
SmUAoKy3+cs0hg6396Io155pzAfkJ+n+
=0Plc
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Hi Karolin,
sorry, did not read your posting properly :-(
The server which hosts the print queue for novapr07 is
actually novalx01, the windows server is novaw2k01
kind regards
Andreas
Karolin Seeger schrieb:[color=blue]
> Hello Andreas,
>
> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:
> [color=green]
>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>> Unable to open printer \\NOVALX01\novalx07, error is
>> WERR_INVALID_PRINTER_NAME.
>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>> return code = -1
>> [/color]
>
> I guess that the server name is not NOVALX01, right?
>
> Please try the following command:
>
> net ads printer publish <server name> novapr07 -UXXXX
>
> Does that work for you?
>
> Karolin
>
> [/color]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iEYEARECAAYFAkhgxHAACgkQpw6fP7dIJ7N4rgCgsOPzliFiIYv/tif/iC6HrREl
1cQAoJaSsHpU2PKEuSrkITBOtPUGqfn/
=laLA
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Karolin Seeger schrieb:[color=blue]
> On Tue, Jun 24, 2008 at 11:41:59AM +0200, Karolin Seeger wrote:[color=green]
>> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:[color=darkred]
>>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>>> Unable to open printer \\NOVALX01\novalx07, error is
>>> WERR_INVALID_PRINTER_NAME.
>>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>>> return code = -1[/color]
>> I guess that the server name is not NOVALX01, right?
>>
>> Please try the following command:
>>
>> net ads printer publish <server name> novapr07 -UXXXX[/color]
>
> Sorry, just the other way around:
> net ads printer publish novapr07 <server name> -UXXXX
>[color=green]
>> Does that work for you?[/color]
>
> Karolin
>[/color]
Hello Karolin
I have also tired with:
net ads printer publish novapr07 novalx01 -UXXXX -d 3
but it does not seem to work, now I get following error:
<--snip
[2008/06/24 11:59:58, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads]
expiration Di, 24 Jun 2008 21:59:59 CEST
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_start_connection(1556)
Connecting to host=novalx01
[2008/06/24 11:59:58, 3] lib/util_sock.c:open_socket_out(874)
Connecting to 10.2.1.5 at port 445
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(795)
Doing spnego session setup (blob length=121)
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 2 840 113554 1 2 2
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 2 840 48018 1 2 2
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
got OID=1 3 6 1 4 1 311 2 2 10
[2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(828)
got principal=cifs/novalx01.novanetwork.loc@NOVANETWORK.LOC
[2008/06/24 11:59:58, 2] libsmb/cliconnect.c:cli_session_setup_kerberos(615)
Doing kerberos session setup
[2008/06/24 11:59:58, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
ads_cleanup_expired_creds: Ticket in ccache[MEMORY:cliconnect]
expiration Di, 24 Jun 2008 21:59:59 CEST
[2008/06/24 12:00:02, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2082)
rpc_pipe_bind: Remote machine novalx01 pipe \spoolss fnum 0x72b0 bind
request returned ok.
[2008/06/24 12:00:02, 3]
libads/ldap_printer.c:get_remote_printer_publishing_data(315)
Unable to do enumdataex on \\novalx01\novapr07, error is
WERR_INVALID_PARAM.
[2008/06/24 12:00:02, 3]
libads/ldap_printer.c:get_remote_printer_publishing_data(332)
Unable to do enumdataex on \\novalx01\novapr07, error is
WERR_INVALID_PARAM.
[2008/06/24 12:00:02, 2] utils/net.c:main(1046)
return code = -1
snip-->
kind regards
Andreas
Re: publishing printer to ADS not working
On Tue, Jun 24, 2008 at 12:02:55PM +0200, Andreas Oster wrote:[color=blue]
> I have also tired with:
>
> net ads printer publish novapr07 novalx01 -UXXXX -d 3
>
> but it does not seem to work, now I get following error:
>
> <--snip
>
> [2008/06/24 11:59:58, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
> ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads] expiration
> Di, 24 Jun 2008 21:59:59 CEST
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_start_connection(1556)
> Connecting to host=novalx01
> [2008/06/24 11:59:58, 3] lib/util_sock.c:open_socket_out(874)
> Connecting to 10.2.1.5 at port 445
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(795)
> Doing spnego session setup (blob length=121)
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
> got OID=1 2 840 113554 1 2 2
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
> got OID=1 2 840 48018 1 2 2
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(820)
> got OID=1 3 6 1 4 1 311 2 2 10
> [2008/06/24 11:59:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(828)
> got principal=cifs/novalx01.novanetwork.loc@NOVANETWORK.LOC
> [2008/06/24 11:59:58, 2]
> libsmb/cliconnect.c:cli_session_setup_kerberos(615)
> Doing kerberos session setup
> [2008/06/24 11:59:58, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(528)
> ads_cleanup_expired_creds: Ticket in ccache[MEMORY:cliconnect] expiration
> Di, 24 Jun 2008 21:59:59 CEST
> [2008/06/24 12:00:02, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2082)
> rpc_pipe_bind: Remote machine novalx01 pipe \spoolss fnum 0x72b0 bind
> request returned ok.
> [2008/06/24 12:00:02, 3]
> libads/ldap_printer.c:get_remote_printer_publishing_data(315)
> Unable to do enumdataex on \\novalx01\novapr07, error is
> WERR_INVALID_PARAM.
> [2008/06/24 12:00:02, 3]
> libads/ldap_printer.c:get_remote_printer_publishing_data(332)
> Unable to do enumdataex on \\novalx01\novapr07, error is
> WERR_INVALID_PARAM.
> [2008/06/24 12:00:02, 2] utils/net.c:main(1046)
> return code = -1
>
>
> snip-->[/color]
Okay, looks a little bit better, but still does not work.
Please open a bug report at [url]https://bugzilla.samba.org/[/url].
I think that would be the best way to get help soon.
Karolin
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
[url]http://www.SerNet.DE[/url], mailto: Info @ SerNet.DE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFIYMnRKGi9fisXk1ERAm0fAJ9sD5fcGAvdR8rADArbJeZETyFNowCfReWK
/EBZqiJEG2DdYZLsyvWb7vw=
=76WX
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Hi Andreas,
Do you have a driver assigned to novapr07?
When I compare my output of the net command to yours, I can see that the
enumeration of the DSSPOOLER key fails (your 2nd WERR_INVALID_PARAM).
This is very unlikely - except, if you don't have a windows driver bound
to your queue.
Greetings,
Martin
Andreas Oster schrieb:[color=blue]
> Karolin Seeger schrieb:[color=green]
>> On Tue, Jun 24, 2008 at 11:41:59AM +0200, Karolin Seeger wrote:[color=darkred]
>>> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:
>>>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>>>> Unable to open printer \\NOVALX01\novalx07, error is
>>>> WERR_INVALID_PRINTER_NAME.
>>>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>>>> return code = -1
>>> I guess that the server name is not NOVALX01, right?
>>>
>>> Please try the following command:
>>>
>>> net ads printer publish <server name> novapr07 -UXXXX[/color]
>>
>> Sorry, just the other way around:
>> net ads printer publish novapr07 <server name> -UXXXX[color=darkred]
>>> Does that work for you?[/color][/color][/color]
[...][color=blue]
> I have also tired with:
>
> net ads printer publish novapr07 novalx01 -UXXXX -d 3
>[/color]
[...][color=blue]
> [2008/06/24 12:00:02, 3]
> libads/ldap_printer.c:get_remote_printer_publishing_data(315)
> Unable to do enumdataex on \\novalx01\novapr07, error is
> WERR_INVALID_PARAM.
> [2008/06/24 12:00:02, 3]
> libads/ldap_printer.c:get_remote_printer_publishing_data(332)
> Unable to do enumdataex on \\novalx01\novapr07, error is
> WERR_INVALID_PARAM.
> [2008/06/24 12:00:02, 2] utils/net.c:main(1046)
> return code = -1[/color]
--
Martin Zielinski [email]mz@seh.de[/email]
Softwareentwicklung T +49 (0)521 94226 76
SEH Computertechnik GmbH [url]www.seh.de[/url]
Re: publishing printer to ADS not working
Hello Martin,
now I am a little confused. Why do I have to install
Windows drivers in order to publish the printer ?
With an earlier version of samba (i don´t know
which version it was) the publishing worked and
I had definitely no drivers assigned to the queue.
kind regards
Andreas
Martin Zielinski schrieb:[color=blue]
> Hi Andreas,
>
> Do you have a driver assigned to novapr07?
> When I compare my output of the net command to yours, I can see that
> the enumeration of the DSSPOOLER key fails (your 2nd WERR_INVALID_PARAM).
> This is very unlikely - except, if you don't have a windows driver
> bound to your queue.
>
> Greetings,
>
> Martin
>
> Andreas Oster schrieb:[color=green]
>> Karolin Seeger schrieb:[color=darkred]
>>> On Tue, Jun 24, 2008 at 11:41:59AM +0200, Karolin Seeger wrote:
>>>> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:
>>>>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>>>>> Unable to open printer \\NOVALX01\novalx07, error is
>>>>> WERR_INVALID_PRINTER_NAME.
>>>>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>>>>> return code = -1
>>>> I guess that the server name is not NOVALX01, right?
>>>>
>>>> Please try the following command:
>>>>
>>>> net ads printer publish <server name> novapr07 -UXXXX
>>>
>>> Sorry, just the other way around:
>>> net ads printer publish novapr07 <server name> -UXXXX
>>>> Does that work for you?[/color][/color]
> [...][color=green]
>> I have also tired with:
>>
>> net ads printer publish novapr07 novalx01 -UXXXX -d 3
>>[/color]
> [...][color=green]
>> [2008/06/24 12:00:02, 3]
>> libads/ldap_printer.c:get_remote_printer_publishing_data(315)
>> Unable to do enumdataex on \\novalx01\novapr07, error is
>> WERR_INVALID_PARAM.
>> [2008/06/24 12:00:02, 3]
>> libads/ldap_printer.c:get_remote_printer_publishing_data(332)
>> Unable to do enumdataex on \\novalx01\novapr07, error is
>> WERR_INVALID_PARAM.
>> [2008/06/24 12:00:02, 2] utils/net.c:main(1046)
>> return code = -1[/color]
>
>[/color]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iEYEARECAAYFAkhg3ikACgkQpw6fP7dIJ7NMgQCgius7QrLs2C4MUd67BoqGqrRH
8CsAn3zZvhglg/1A95/lR023Us5ktxyH
=/m6R
-----END PGP SIGNATURE-----
Re: publishing printer to ADS not working
Hi,
Dunno. Others will be better candidates to answere this.
I allways thought that this is intended behaviour.
But the point is, that when you assign a driver, the registry key will
be generated (and I think this is related to several driver properties).
Then you should be able to publish your printer in ADS.
Bye,
Martin
Andreas Oster schrieb:[color=blue]
> Hello Martin,
>
> now I am a little confused. Why do I have to install
> Windows drivers in order to publish the printer ?
>
> With an earlier version of samba (i don´t know
> which version it was) the publishing worked and
> I had definitely no drivers assigned to the queue.
>
> kind regards
>
> Andreas
>
>
> Martin Zielinski schrieb:[color=green]
>> Hi Andreas,
>>
>> Do you have a driver assigned to novapr07?
>> When I compare my output of the net command to yours, I can see that
>> the enumeration of the DSSPOOLER key fails (your 2nd WERR_INVALID_PARAM).
>> This is very unlikely - except, if you don't have a windows driver
>> bound to your queue.
>>
>> Greetings,
>>
>> Martin
>>
>> Andreas Oster schrieb:[color=darkred]
>>> Karolin Seeger schrieb:
>>>> On Tue, Jun 24, 2008 at 11:41:59AM +0200, Karolin Seeger wrote:
>>>>> On Tue, Jun 24, 2008 at 11:03:33AM +0200, Andreas Oster wrote:
>>>>>> libads/ldap_printer.c:get_remote_printer_publishing_data(304)
>>>>>> Unable to open printer \\NOVALX01\novalx07, error is
>>>>>> WERR_INVALID_PRINTER_NAME.
>>>>>> [2008/06/23 10:12:44, 2] utils/net.c:main(1046)
>>>>>> return code = -1
>>>>> I guess that the server name is not NOVALX01, right?
>>>>>
>>>>> Please try the following command:
>>>>>
>>>>> net ads printer publish <server name> novapr07 -UXXXX
>>>>
>>>> Sorry, just the other way around:
>>>> net ads printer publish novapr07 <server name> -UXXXX
>>>>> Does that work for you?[/color]
>> [...][color=darkred]
>>> I have also tired with:
>>>
>>> net ads printer publish novapr07 novalx01 -UXXXX -d 3
>>>[/color]
>> [...][color=darkred]
>>> [2008/06/24 12:00:02, 3]
>>> libads/ldap_printer.c:get_remote_printer_publishing_data(315)
>>> Unable to do enumdataex on \\novalx01\novapr07, error is
>>> WERR_INVALID_PARAM.
>>> [2008/06/24 12:00:02, 3]
>>> libads/ldap_printer.c:get_remote_printer_publishing_data(332)
>>> Unable to do enumdataex on \\novalx01\novapr07, error is
>>> WERR_INVALID_PARAM.
>>> [2008/06/24 12:00:02, 2] utils/net.c:main(1046)
>>> return code = -1[/color]
>>
>>[/color][/color]
--
Martin Zielinski [email]mz@seh.de[/email]
Softwareentwicklung T +49 (0)521 94226 76
SEH Computertechnik GmbH [url]www.seh.de[/url]