Thanks.. changed to sAMAccountName. Still not working. Not sure what to use for a template or filter.
Here is a redacted search on the user I am testing with: # extended LDIF # # LDAPv3 # base <dc=schoolsrhigh,dc=school,dc=k12,dc=mn,dc=us> with scope subtree # filter: (cn=Raymond_LCTN) # requesting: ALL # # Raymond_LCTN, computer techs, Accounts, schoolsrhigh.school.k12.mn.us dn: CN=Raymond_LCTN,OU=computer techs,OU=Accounts,DC=schoolsrhigh,DC=school, DC=k12,DC=mn,DC=us objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user cn: Raymond_LCTN sn: LCTN givenName: Raymond distinguishedName: CN=Raymond_LCTN,OU=computer techs,OU=Accounts,DC=schoolsrh igh,DC=school,DC=k12,DC=mn,DC=us instanceType: 4 whenCreated: 20140915202746.0Z whenChanged: 20140925203418.0Z displayName: Raymond_LCTN uSNCreated: 76384232 uSNChanged: 76945081 department: tech company: LCTN homeMTA: CN=Microsoft MTA,CN=EXCHANGE1,CN=Servers,CN=Exchange Administrative G roup (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=school Public Schools,CN= Microsoft Exchange,CN=Services,CN=Configuration,DC=schoolsrhigh,DC=school,D C=k12,DC=mn,DC=us proxyAddresses: smtp:Raymond@local proxyAddresses: X400:C=US;A= ;P=school Public S;O=Exchange;S=LCTN;G=Raymond; proxyAddresses: SMTP:[email protected] homeMDB: CN=Mailbox Database 0492601172,CN=Databases,CN=Exchange Administrativ e Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=school Public Schools, CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=schoolsrhigh,DC=willma r,DC=k12,DC=mn,DC=us mDBUseDefaults: TRUE mailNickname: Raymond name: Raymond_LCTN objectGUID:: Z/CMFj9wMEGS26jaKnY/kQ== userAccountControl: 512 badPwdCount: 0 codePage: 0 countryCode: 0 badPasswordTime: 130564669279159579 lastLogoff: 0 lastLogon: 130561510451295391 pwdLastSet: 130561506928123228 primaryGroupID: 513 objectSid:: AQUAAAAAAAUVAAAAUqrIaPGzEnEH5Tsr8IkAAA== accountExpires: 9223372036854775807 logonCount: 0 sAMAccountName: Raymond sAMAccountType: 805306368 showInAddressBook: CN=All Users,CN=All Address Lists,CN=Address Lists Containe r,CN=school Public Schools,CN=Microsoft Exchange,CN=Services,CN=Configuratio n,DC=schoolsrhigh,DC=school,DC=k12,DC=mn,DC=us showInAddressBook: CN=Default Global Address List,CN=All Global Address Lists, CN=Address Lists Container,CN=school Public Schools,CN=Microsoft Exchange,CN =Services,CN=Configuration,DC=schoolsrhigh,DC=school,DC=k12,DC=mn,DC=us legacyExchangeDN: /o=school Public Schools/ou=Exchange Administrative Group ( FYDIBOHF23SPDLT)/cn=Recipients/cn=Raymond_LCTN userPrincipalName: [email protected] objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=schoolsrhigh,DC=willm ar,DC=k12,DC=mn,DC=us dSCorePropagationData: 20140915202747.0Z dSCorePropagationData: 16010101000000.0Z lastLogonTimestamp: 130561508562241603 textEncodedORAddress: X400:C=US;A= ;P=school Public S;O=Exchange;S=LCTN;G=Ray mond; mail: [email protected] msExchHomeServerName: /o=school Public Schools/ou=Exchange Administrative Gro up (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=EXCHANGE1 msExchMailboxSecurityDescriptor:: AQAEgBQAAAAgAAAAAAAAACwAAAABAQAAAAAABQoAAAAB AQAAAAAABQoAAAAEABwAAQAAAAACFAABAAIAAQEAAAAAAAUKAAAA msExchUserAccountControl: 0 msExchMailboxGuid:: UmizfvaTfkSy70zRU7kt2g== msExchPoliciesIncluded: 4e21c66f-ec4d-498e-a9ee-7f3b07e1b4d5 msExchPoliciesIncluded: {26491cfc-9e50-4857-861b-0cb8df22b5d7} msExchVersion: 44220983382016 msExchRecipientDisplayType: 1073741824 msExchRBACPolicyLink: CN=Default Role Assignment Policy,CN=Policies,CN=RBAC,CN =school Public Schools,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC =schoolsrhigh,DC=school,DC=k12,DC=mn,DC=us msExchRecipientTypeDetails: 1 msExchUMDtmfMap: emailAddress:7296663 msExchUMDtmfMap: lastNameFirstName:52867296663 msExchUMDtmfMap: firstNameLastName:72966635286 # search reference ref: ldap://DomainDnsZones.schoolsrhigh.school.k12.mn.us/DC=DomainDnsZones,D C=schoolsrhigh,DC=school,DC=k12,DC=mn,DC=us # search reference ref: ldap://ForestDnsZones.schoolsrhigh.school.k12.mn.us/DC=ForestDnsZones,D C=schoolsrhigh,DC=school,DC=k12,DC=mn,DC=us # search reference ref: ldap://schoolsrhigh.school.k12.mn.us/CN=Configuration,DC=schoolsrhigh, DC=school,DC=k12,DC=mn,DC=us # search result search: 2 result: 0 Success # numResponses: 5 # numEntries: 1 # numReferences: 3
If it is AD this is wrong "Username attribute: uid" It has to be sAMAccountName
_______________________________________________ http://pledgie.com/campaigns/12056

