[SSSD] [PATCH] AD: Add initial gpo-smb implementation.

Yassir Elley yelley at redhat.com
Tue Jun 17 20:44:20 UTC 2014



----- Original Message -----
> 
> 
> ----- Original Message -----
> > On Sun, Jun 15, 2014 at 07:08:55PM -0400, Yassir Elley wrote:
> > > 
> > > 
> > > * You suggested using the name of the DC that SSSD is currently connected
> > > to in the smb uri (rather than the domain.name, which will require
> > > libsmbclient to perform a DNS resolution). Is there an easy way to get
> > > the
> > > name of the DC that SSSD is currently connected to? I am having trouble
> > > finding it.
> > > 
> > 
> > In struct ad_gpo_access_state you have a member struct sdap_id_conn_ctx
> > *conn. conn->service->uri is the LDAP uri for the current connection.
> > You can use calls from OpenLDAP or ldb to split it into components, picj
> > the hostname and create the smb uri.
> > 
> > In general the uri should always be available since you read the GPO
> > data from LDAP before doing the smb operations. Nevertheless you can
> > call be_resolve_server_send() to make sure it is set, see e.g.
> > auth_get_server() how to use it.
> > 
> > HTH
> > 
> > bye,
> > Sumit
> > _______________________________________________
> > sssd-devel mailing list
> > sssd-devel at lists.fedorahosted.org
> > https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
> > 
> 
> I have attached a revised patch that modifies the smb uri to use the server
> name rather than the domain name.
> 
> Thanks,
> Yassir.
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
> 

Oops. Forgot to attach the patch.

Yassir.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AD-GPO-Add-gpo-smb-implementation-in-gpo_child-proce.patch
Type: text/x-patch
Size: 58176 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140617/c66b6541/attachment.bin>


More information about the sssd-devel mailing list