-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Moeller wrote: > I have a domain whose netbios name is WIN2003R2 and the Kerberos domain > name is win2003r2.home. Using wbinfo I get: > > wbinfo -D WIN2003R2 > > Name : WIN2003R2 > Alt_Name : win2003r2.home > SID : S-1-5-21-1828870822-1098772068-2592627279 > Active Directory : Yes > Native : Yes > Primary : Yes > Sequence : -1 > > Where in AD is the Alt_Name stored ? Can I access this info > also via an ldap call ?
The DNS name is returned in various RPC replies. As well as in the CLDAP Netlogon reply: $ net ads lookup Information for Domain Controller: 192.168.56.48 Response Type: SAMLOGON GUID: 24b34836-cdd9-47a7-b5a4-24c4121e5d52 Flags: Is a PDC: yes Is a GC of the forest: yes Is an LDAP server: yes Supports DS: yes Is running a KDC: yes Is running time services: yes Is the closest DC: yes Is writable: yes Has a hardware clock: no Is a non-domain NC serviced by LDAP server: no Forest: central.plainjoe.org Domain: central.plainjoe.org ^^^^^^^^^^^^^^^^^^^^ Domain Controller: kel.central.plainjoe.org Pre-Win2k Domain: CENTRAL Pre-Win2k Hostname: KEL Server Site Name : Default-First-Site-Name Client Site Name : Default-First-Site-Name NT Version: 5 LMNT Token: ffff LM20 Token: ffff You can also infer this information from the defaultNamingContext attribute in the rootDSE of a domain controller: $ ldapsearch -x -H ldap://central.plainjoe.org/ -b "" -s base\ -LLL "(objectc;ass=*)" defaultNamingContext defaultNamingContext: DC=central,DC=plainjoe,DC=org Hope this helps. cheers, jerry - -- ===================================================================== Samba ------- http://www.samba.org Likewise Software --------- http://www.likewisesoftware.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIVo/nIR7qMdg1EfYRAiTBAJ9hzbtrl39NIyrRdqdFa6PEGDCdLQCfTAGP HtJIGdzWvNoVTgQg/27NltQ= =kQ7o -----END PGP SIGNATURE----- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba