Lines Matching refs:printerName

148 static uchar_t *_constructPrinterDN(uchar_t *printerName,
150 static NSL_RESULT _checkPrinterExists(LDAP *ld, uchar_t *printerName,
154 static NSL_RESULT _addNewPrinterObject(LDAP *ld, uchar_t *printerName,
157 uchar_t *printerName, uchar_t *domainDN, char **attrList);
161 static NSL_RESULT _constructAddLDAPMod(uchar_t *printerName,
163 static NSL_RESULT _constructModLDAPMod(uchar_t *printerName, int sunPrinter,
198 * char *printerName - name of the printer
226 char *printerName = NULL;
242 printerName = printer->name;
271 _checkPrinterExists(ld, (uchar_t *)printerName,
293 printf("DN found = '%s' for '%s'\n", printerDN, printerName);
337 (uchar_t *)printerName,
349 (uchar_t *)printerName,
371 /* no printerName given */
398 * char *printerName - printer name used only for error messages
516 * that is used instead of the printerName.
519 * Input: uchar_t *printerName
531 _constructPrinterDN(uchar_t *printerName, uchar_t *domainDN, char **attrList)
562 if ((uri == NULL) && (printerName != NULL))
564 /* use the printerName for the RDN */
567 strlen((char *)printerName) +
574 ATTR_URI, printerName, PCONTAINER, domainDN);
611 * Description: Check that the printer object for the printerName exists in the
614 * search for the printerName in the supplied domain DN.
618 * uchar_t *printerName - printer name
629 _checkPrinterExists(LDAP *ld, uchar_t *printerName, uchar_t *domainDN,
643 if ((printerName != NULL) && (domainDN != NULL) && (printerDN != NULL))
654 size = (3 + strlen((char *)printerName) + strlen(ATTR_PNAME) +
659 ATTR_PNAME, (char *)printerName);
839 * Description: For the given printerName add a printer object into the
847 * uchar_t *printerName - Name of printer to be added
859 _addNewPrinterObject(LDAP *ld, uchar_t *printerName,
870 if ((ld != NULL) && (printerName != NULL) && (domainDN != NULL) &&
879 * printerName and printer-uri if given.
881 printerDN = _constructPrinterDN(printerName,
889 result = _constructAddLDAPMod(printerName,
944 * uchar_t *printerName - Name of printer to be modified
956 uchar_t *printerName, uchar_t *domainDN, char **attrList)
968 if ((ld != NULL) && (printerDN != NULL) && (printerName != NULL) &&
978 * printer from the printerName or the printer-uri (if
1003 result = _constructModLDAPMod(printerName,
1459 * uchar_t *printerName - Name of printer to be added
1469 _constructAddLDAPMod(uchar_t *printerName, char **attrList, LDAPMod ***attrs)
1480 if ((printerName != NULL) &&
1508 ATTR_PNAME, (char *)printerName);
1590 * Input: uchar_t *printerName - name of printer to be modified
1602 _constructModLDAPMod(uchar_t *printerName, int sunPrinter, char **attrList,
1616 if ((printerName != NULL) &&
1638 ATTR_PNAME, (char *)printerName);