Hello everybody,

I have run into a problem which I am not able to resolve
by myself :-(

Yesterday 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.cm_process(572)
params.cm_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.cpen_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




--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhfXkEACgkQpw6fP7dIJ7O2bACeKo/bm7SexXMOS1E/D5o/ungP
XmMAmwfiE3JXtkQ4cyRlTiHQSyXvhpFO
=MDe7
-----END PGP SIGNATURE-----