Logo Search packages:      
Sourcecode: lat version File versions  Download package

string lat::ServerData::GetLocalSID (  ) [inline]

Gets the local Samba SID (if available).

Returns:
sambaSID

Definition at line 341 of file ServerData.cs.

References lat::LdapServer::Search().

            {
                  LdapEntry[] sid = server.Search (server.DirectoryRoot, LdapConnection.SCOPE_SUB, "objectclass=sambaDomain", null); 
                  if (sid.Length > 0) {
                        LdapAttribute a = sid[0].getAttribute ("sambaSID");
                        return a.StringValue;
                  }

                  return null;                  
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index