summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2020-09-07 23:53:21 +0200
committerJeremy Allison <jra@samba.org>2020-09-18 01:58:22 +0000
commit380938b00fb9fdb5b100e77000a059199695f43a (patch)
tree11f82cc146a48d4241952ed0fe49b4709b917732 /source3/printing
parent787d7756b99f182cc91c4c4215b8a5657a6d25d7 (diff)
downloadsamba-380938b00fb9fdb5b100e77000a059199695f43a.tar.gz
nt_printing_ads: add missing printShareName attribute when publishing printers
Without printShareName attribute in LDAP, Windows doesn't list the pinters at all. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9771 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Sep 18 01:58:22 UTC 2020 on sn-devel-184
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing_ads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c
index 478d1231b00..b3176f88b15 100644
--- a/source3/printing/nt_printing_ads.c
+++ b/source3/printing/nt_printing_ads.c
@@ -345,6 +345,7 @@ static WERROR nt_printer_info_to_mods(TALLOC_CTX *ctx,
char *info_str;
ads_mod_str(ctx, mods, SPOOL_REG_PRINTERNAME, info2->sharename);
+ ads_mod_str(ctx, mods, SPOOL_REG_PRINTSHARENAME, info2->sharename);
ads_mod_str(ctx, mods, SPOOL_REG_SHORTSERVERNAME, lp_netbios_name());
ads_mod_str(ctx, mods, SPOOL_REG_SERVERNAME, get_mydnsfullname());