Export (0) Print
Expand All

2.3.3.3 Searching for Print Queues in the Active Directory

Print servers also use LDAP to search for print queues in the Active Directory. Print servers perform the following steps to search for print queues:

  • Locate the domain controller and bind to the LDAP server as described in section 2.3.3.1.

  • Search for print queues with the desired attributes, using the LDAP search operation, as defined in section 4.5 of [RFC2251]. The format of the LDAP search request is described in section 4.5.1 of [RFC2251]. The parameters of the search request are set as follows:

    Parameter

    Value

    baseObject

    Print servers MAY specify the default naming context retrieved from the root DSE. The root DSE is defined in [MS-ADTS] section 1.1, and the default naming context attribute is described in [MS-ADTS] section 3.1.1.3.2.3.

    scope

    Print servers SHOULD specify wholeSubtree.

    derefAliases

    Print servers SHOULD specify neverDerefAliases.

    sizeLimit

    This value is dependent on the print server implementation and does not affect the protocol.

    timeLimit

    This value is dependent on the print server implementation and does not affect the protocol.

    filter

    The filter parameter of the search request MUST contain the requirement that the returned objects be of the print queue object class. In the string representation of filters described in [RFC2254], this requirement is written as "(objectClass = printQueue)". In conjunction with this requirement, the filter can contain any restrictions based on any combination of attributes of the schema for the print queue object class.

    attributes

    The print server can request any set of attributes in the schema, but it SHOULD NOT fail if any optional attribute is missing.

  • Unbind from the LDAP server as described in section 2.3.3.1.

Print servers can also search the global catalog (GC) for print queues in other NCs.<275> The GC and naming contexts are defined in [MS-GLOS]. The Active Directory implementation of the GC is described in [MS-ADTS] section 3.1.1.1.8. Print clients use LDAP to perform searches on the GC in the same way as above.

Print servers can negotiate encryption of LDAP messages as part of the SASL authentication during the binding process, as described in [MS-ADTS] section 5.1.1.1.2.<276>

If an Active Directory print queue object is enumerated by the search, but the mandatory information specified in section 2.3.2 is not present in that print queue object, the print server SHOULD ignore this object and continue to the next enumerated print queue object.

Print servers MAY retry failed LDAP search operations.

 
Show:
© 2014 Microsoft